@Override
public void validate(JSONSchema schema, Object obj, String path, ValidationResults results) {
Map<String, Object> map = null;
if (obj instanceof JSONObject) {
map = new GenericJSONObjectMap((JSONObject) obj);
} else if (obj instanceof Map) {
//noinspection unchecked
map = (Map<String,Object>) obj;
}