private void buildSortingExpression(SortingExpressionImpl parent,
FieldInformer fieldInformer, Map<String, Object> value) {
for(Map.Entry<String, Object> entry : value.entrySet()) {
if(fieldInformer instanceof Informer) {
Informer beanInformer = (Informer) fieldInformer;
try {
FieldInformer usedInformer = beanInformer.get(entry.getKey());
parent.add(usedInformer, SortingExpression.Direction.valueOf(entry.getValue().toString()));
} catch(Exception e) {
logger.log(Level.FINE, "unable to create a sorting expression from field name "+entry.getKey()+" in class "+beanInformer.toString(), e);
}
}
}
}