static File getStandaloneProfileConfigurationDirectory(final Environment environment) {
        if (environment.getActiveProfiles().length > 0
            && Arrays.stream(environment.getActiveProfiles()).allMatch(profile -> profile.equalsIgnoreCase(PROFILE_NONE))) {
            LOGGER.info("Standalone configuration directory processing is skipped for profile [{}]", PROFILE_NONE);
            return null;
        }

        val values = new LinkedHashSet<>(RelaxedPropertyNames.forCamelCase(PROPERTY_CAS_STANDALONE_CONFIGURATION_DIRECTORY).getValues());
        values.add(PROPERTY_CAS_STANDALONE_CONFIGURATION_DIRECTORY);
        val file = values
            .stream()
            .map(key -> environment.getProperty(key, File.class))
            .filter(Objects::nonNull)
            .findFirst()
            .orElse(null);

        if (file != null && file.exists()) {
            LOGGER.trace("Received standalone configuration directory [{}]", file);
            return file;
        }

        return DEFAULT_CAS_CONFIG_DIRECTORIES
            .stream()
            .filter(File::exists)
            .findFirst()
            .orElse(null);
    }
Gets standalone profile configuration directory.

@param environment the environment
@return the standalone profile configuration directory
core/cas-server-core-configuration-api/src/main/java/org/apereo/cas/configuration/api/CasConfigurationPropertiesSourceLocator.java