class SecurityManagementUtils {

    public static Set<String> rolesToString(final Set<Role> roles) {
        if (null != roles && !roles.isEmpty()) {
            final Set<String> result = new HashSet<String>(roles.size());
            for (final Role role : roles) {
                result.add(role.getName());
            }
            return result;
        }
        return new HashSet<String>();
    }

}