public static boolean equals(final IJsonConfigurable<?> jsonConfig1, final IJsonConfigurable<?> jsonConfig2) {
        if (jsonConfig1 == jsonConfig2) {
            return true;
        }
        if (jsonConfig1 == null || jsonConfig2 == null) {
            return false;
        }
        final JsonNode node1 = toJsonConfig(jsonConfig1);
        final JsonNode node2 = toJsonConfig(jsonConfig2);

        return Objects.equals(node1, node2);
    }
Helper method to compare two IJsonComfigration objects using their JSON representation
main/src/main/java/cgeo/geocaching/utils/config/JsonConfigurationUtils.java