Map<String, List<ModelAnnotation>> annotationMap = new HashMap<String, List<ModelAnnotation>>();
for ( Map.Entry<String, Map<String, Map<String, String>>> factTypeEntry : this.annotationsForType.entrySet() ) {
String factType = factTypeEntry.getKey();
List<ModelAnnotation> annotations = new ArrayList<ModelAnnotation>();
for ( Map.Entry<String, Map<String, String>> annotationEntry : factTypeEntry.getValue().entrySet() ) {
ModelAnnotation ma = new ModelAnnotation();
ma.setAnnotationName( annotationEntry.getKey() );
ma.setAnnotationValues( annotationEntry.getValue() );
annotations.add( ma );
}
annotationMap.put( factType,
annotations );
}