code: public CmsSessionInfo getSessionInfo(HttpSession session) {
  
          if (session == null) {
              return null;
          }
          CmsUUID sessionId = (CmsUUID)session.getAttribute(CmsSessionInfo.ATTRIBUTE_SESSION_ID);
          return (sessionId == null) ? null : getSessionInfo(sessionId);
      }
docs: Returns the OpenCms user session info for the given http session,
  or <code>null</code> if no user session is available.<p>
  
  @param session the current http session
  
  @return the OpenCms user session info for the given http session, or <code>null</code> if no user session is available