Map<String, Object> params = new HashMap<String, Object>();
Annotation annotation = clazz.getAnnotation(Dao.class);
if (Sortable.class.isAssignableFrom(clazz))
params.put("isSortable", true);
if (annotation instanceof Dao) {
Dao dao = (Dao) annotation;
params.put("syncMode", dao.synchronizeMode());
} else {
// unexpected case... but handle it nevertheless
params.put("syncMode", SyncMode.UPDATE);
_log.error("Unable to retrieve syncMode for ["+clazz.getName()+"]");
}