@SuppressWarnings("unchecked")
  protected void peek() {
    ServletContext application = getActionServlet().getServletContext();
    HttpSession session = getSession();

    ApplicationContext wac =
        (ApplicationContext)
            application.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
    logger.debug(wac);

    ApplicationContext parent = wac.getParent();
    if (parent != null) logger.debug(parent.toString());

    for (String n : wac.getBeanDefinitionNames()) {
      logger.debug(n);
    }

    // notice the dot . in the key name!
    wac =
        (ApplicationContext)
            application.getAttribute("org.springframework.web.struts.ContextLoaderPlugIn.CONTEXT.");
    if (wac != null) {
      logger.debug("struts ContextLoaderPlugIn context");
      for (String n : wac.getBeanDefinitionNames()) {
        logger.debug(n);
      }
    } else {
      logger.debug("ContextLoaderPlugIn ac is null");
    }
    parent = wac.getParent();
    if (parent != null) {
      logger.debug("Parent = " + parent.toString());
    }

    logger.debug("Servlet context");
    for (Enumeration e = application.getAttributeNames(); e.hasMoreElements(); ) {
      String key = (String) e.nextElement();
      String s = String.format("%s=%s", key, application.getAttribute(key));
      logger.debug(s);
    }

    logger.debug("Session");
    for (Enumeration e = session.getAttributeNames(); e.hasMoreElements(); ) {
      String key = (String) e.nextElement();
      String s = String.format("%s=%s", key, session.getAttribute(key));
      logger.debug(s);
    }

    logger.debug("request attributes:");
    HttpServletRequest request = getRequest();
    for (Enumeration e = request.getAttributeNames(); e.hasMoreElements(); ) {
      String key = (String) e.nextElement();
      String s = String.format("%s=%s", key, request.getAttribute(key));
      logger.debug(s);
    }
  }