*
* @param field field to get associated property name for
* @return property name associated with given field, never null.
*/
private String getPropertyName(Field field) {
final JcrProperty annotation = field.getAnnotation(JcrProperty.class);
if ((annotation != null) && StringUtils.isNotBlank(annotation.value())) {
return annotation.value();
}
return field.getName();
}