// Now add the properties defined in annotations.
Annotation properties = getAnnotation(Properties.class);
if (properties != null) {
for (Annotation property : (Annotation[]) MetadataHelper.invokeMethod("value", properties)) {
getDescriptor().addProperty(new PropertyMetadata(property, getAccessibleObject()));
}
}
Annotation property = getAnnotation(Property.class);
if (property != null) {
getDescriptor().addProperty(new PropertyMetadata(property, getAccessibleObject()));
}
}