public static void holdApplicationContext(final ApplicationContext ctx) {
        APPLICATION_CONTEXT = ctx;
    }
Hold application context statically.

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