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