throw new IllegalArgumentException("Illegal field name format, should be '<property> [by key|value]' but was '" + fieldName
+ '\'');
}
private static String adjustFieldName(final OClass clazz, final String fieldName) {
final OProperty property = clazz.getProperty(fieldName);
if (property != null)
return property.getName();
else
return fieldName;
}