default void injectEnvironmentInfo(final Formatter formatter,
                                       final Environment environment,
                                       final Class<?> sourceClass) {
        if (environment.getActiveProfiles().length > 0) {
            formatter.format("Active Profiles: %s%n", String.join(",", environment.getActiveProfiles()));
        }
    }
Inject environment info.

@param formatter   the formatter
@param environment the environment
@param sourceClass the source class
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/boot/CasBanner.java