616263646566676869
if (roles == null) { return Collections.emptyList(); } Collection<RoleItem> items = new ArrayList<RoleItem>(); for (Role role : roles) { items.add(new RoleItem(role)); } return items; }