/** * <p>init</p> */ @SuppressWarnings("unchecked") public void init() { List<AuthorityDTO> authorities = new FastArrayList(); for (AuthorityDTO authorityDTO : authorityService.getAuthorities()) { authorityDTO.setItems(authorityService .getIdItemsAuthority(authorityDTO.getId())); if (authorityDTO.hasItems()) { authorities.add(authorityDTO); } } if (authorities.size() > 0) { authItemsHelper = new AuthoritiesNodeHelper(authorities); } ready = true; }