class JcrNs implements JsonObjectConvertible, Comparable<JcrNs> {

    @Override
    public int compareTo(final @NotNull JcrNs o) {
        return Optional.of(getPrefix().compareTo(o.getPrefix()))
                .filter(comp -> comp != 0).orElseGet(() -> getUri().compareTo(o.getUri()));
    }

}