/** * Create a role based on a name without any attributes. * * @param name name of role * @return a new role instance */ public static Role create(String name) { return builder().name(name).build(); }
String groupRef = groupJson.getString("$ref"); Role role = Role.builder() .name(groupName) .addAttribute("groupId", groupId)