protected List<String> getApplicationProfiles(final Environment environment) {
        return Arrays.stream(environment.getActiveProfiles()).collect(Collectors.toList());
    }
Gets application profiles.

@param environment the environment
@return the application profiles
core/cas-server-core-configuration-api/src/main/java/org/apereo/cas/configuration/loader/BaseConfigurationPropertiesLoader.java