}
}
if (value != null) {
if (field.isAnnotationPresent(XmlAttribute.class)) {
return new Property(field.getAnnotation(XmlAttribute.class).name(), fieldName, displayName, resolvePropertyExpression(value));
} else {
return new Property(fieldName, fieldName, displayName, resolvePropertyExpression(value));
}
} else {
return new Property(fieldName, fieldName, displayName, null);
}
} else {
log.warn(String.format("Unknown field %s on endpoint type %s", fieldName, definition.getClass()));
return null;
}