120121122123124125126127128129130
} catch (Exception ex) { return 0; } } }); UIGroup group = createUIGroup(clazz); if (isNotEmpty(matchingFields)) for(Field field : matchingFields) group.addComponent(callback.doWith(field)); return group; }
128129130131132133134135136137
group.addComponent(callback.doWith(field)); return group; } private static UIGroup createUIGroup(Class<?> clazz) { UIGroup group = new UIGroup(); group.setEntityClass(clazz); group.setComponents(new ArrayList()); return group; }