code: public static void destroyAppContext(Page page) {
          XmlWebApplicationContext appContext = getAppContext(page);
          
          if (appContext != null) {
              appContext.close();
          }
      }
docs: Destroys the application context associated with the specified page.
  
  @param page Page instance