Map<String, String[]> predefined = ContextKeeper.getConfigParamMapFor("facets.predefined", "facet_uri");
for(String faceturi : predefined.keySet()){
if(properties.contains(inputModel.getProperty(faceturi))){
PredefinedRdfEnhancer enhancer;
String color = predefined.get(faceturi)[0];
for(int i = 1; i < predefined.get(faceturi).length; i++){
String call = predefined.get(faceturi)[i];
try {
enhancer = (PredefinedRdfEnhancer)Class.forName("org.foafrealm.mfb.mediator.predefined."+call+"Enhancer").newInstance();
} catch (InstantiationException e) {
e.printStackTrace();
continue;
} catch (IllegalAccessException e) {
e.printStackTrace();
continue;
} catch (ClassNotFoundException e) {
e.printStackTrace();
continue;
}
enhancer.enhance(inputModel, outputModel, properties, enhanceCache, faceturi, color);
}