public static XmlWebApplicationContext getAppContext(Page page) {
        return page == null ? null : (XmlWebApplicationContext) page.getAttribute(APP_CONTEXT_ATTRIB);
    }
public static XmlWebApplicationContext getAppContext ( Page page ) { return page == null ? null : ( XmlWebApplicationContext ) page . getAttribute ( APP_CONTEXT_ATTRIB ) ; }
Returns the application context associated with the given page.

@param page Page instance.
@return Application context associated with the page.