if (annotation != null && annotation.isAnnotation()) {
try {
AnnotationDefinition annotationDefinition = AnnotationDefinition.build(annotation,
typeDescr.getAnnotations().get(annotationName).getValueMap(),
pkgRegistry.getTypeResolver());
def.addAnnotation(annotationDefinition);
} catch (NoSuchMethodException nsme) {
kbuilder.addBuilderResult(new TypeDeclarationError(typeDescr,
"Annotated type " + fullName +
" - undefined property in @annotation " +
annotationName + ": " +