public void setAnnotationsOn(AnnotatedDescrBuilder builder) {
if (!descr.getAnnotations().isEmpty()) {
for (AnnotationDescr annDescr : descr.getAnnotations()) {
AnnotationDescrBuilder annotation = builder.newAnnotation(annDescr.getName());
for (Map.Entry<String, Object> valueEntry : annDescr.getValueMap().entrySet()) {
annotation.keyValue(valueEntry.getKey(), valueEntry.getValue());
}
}
clear();
}
}