public static <U extends UserProfile> List<U> flatIntoAProfileList(final Map<String, U> profiles) {
        return new ArrayList<>(profiles.values());
    }
Flat the map of profiles into a list of profiles.

@param profiles the map of profiles
@param <U> the kind of profile
@return the list of profiles
pac4j-core/src/main/java/org/pac4j/core/profile/ProfileHelper.java