@ Override public ApplicationContext getChildAppContext ( ) { ApplicationContext appContext = getAppContext ( ExecutionContext . getPage ( ) ) ; return appContext == null ? getRootAppContext ( ) : appContext ; }
Returns the application context for the current scope . If no page exists or no application context is associated with the page looks for an application context registered to the current thread . Failing that returns the root application context .