class SecurityManagementUtils {

    public static Set<String> groupsToString(final Set<Group> groups) {
        if (null != groups && !groups.isEmpty()) {
            final Set<String> result = new HashSet<String>(groups.size());
            for (final Group group : groups) {
                result.add(group.getName());
            }
            return result;
        }
        return new HashSet<String>();
    }

}