@SuppressWarnings("unchecked")
protected static AnnotationProperty<Annotation, ?> createAnnotationProperty(Annotation[] annotations) {
try {
for (Annotation annotation : annotations) {
AConverter converterClass = annotation.annotationType().getAnnotation( AConverter.class );
if ( converterClass != null ) {
AnnotationProperty<Annotation, ?> annotationProperty = converterClass.value().newInstance();
annotationProperty.initialize( annotation );
return annotationProperty;
}
}