try {
// Annotation merging
Annotations annotator = new Annotations();
Map<ResourceRoot, Index> indexes = AnnotationIndexUtils.getAnnotationIndexes(deploymentUnit);
for (Entry<ResourceRoot, Index> entry : indexes.entrySet()) {
AnnotationRepository repository = new JandexAnnotationRepositoryImpl(entry.getValue(), classLoader);
cmd = annotator.merge(cmd, repository, classLoader);
}
// FIXME: when the connector is null the Iron Jacamar data is ignored
if (cmd != null) {
// Validate metadata