public static Optional<CasConfigurationProperties> getCasConfigurationProperties() {
        if (APPLICATION_CONTEXT != null) {
            return Optional.of(APPLICATION_CONTEXT.getBean(CasConfigurationProperties.class));
        }
        return Optional.empty();
    }
Gets cas properties.

@return the cas properties
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/ApplicationContextProvider.java