code: private static Object getSessionVar(HttpServletRequest request, ServletContext servletContext, String name)
      {
          StorageHandler sh = Handlers.get( servletContext ).getStorageHandler();
  
          HttpServletRequest unwrappedRequest = PageFlowUtils.unwrapMultipart( request );
          RequestContext rc = new RequestContext( unwrappedRequest, null );
          String attrName = ScopedServletUtils.getScopedSessionAttrName(name, unwrappedRequest);
          return sh.getAttribute( rc, attrName );
      }
docs: This is a generic routine that will retrieve a value from the Session through the
  StorageHandler.
  @param request
  @param servletContext
  @param name The name of the value to be retrieved
  @return The requested value from the session