GroupMapping (@ActionText String text, boolean showGroupText) { GroupMapping mapping = new GroupMapping(showGroupText); mapping.addPath(Collections.singletonList(new DefaultActionGroup(text, false))); return mapping; }