code: protected void initWorkplaceMembers(CmsObject cms, HttpSession session) {
  
          m_cms = cms;
          m_session = session;
          // check role
          try {
              checkRole();
          } catch (CmsRoleViolationException e) {
              throw new CmsIllegalStateException(e.getMessageContainer(), e);
          }
  
          // get / create the workplace settings
          m_settings = (CmsWorkplaceSettings)m_session.getAttribute(CmsWorkplaceManager.SESSION_WORKPLACE_SETTINGS);
  
          if (m_settings == null) {
              // create the settings object
              m_settings = new CmsWorkplaceSettings();
              m_settings = initWorkplaceSettings(m_cms, m_settings, false);
  
              storeSettings(m_session, m_settings);
          }
  
          // initialize messages
          CmsMessages messages = OpenCms.getWorkplaceManager().getMessages(getLocale());
          // generate a new multi messages object and add the messages from the workplace
          m_messages = new CmsMultiMessages(getLocale());
          m_messages.addMessages(messages);
          initMessages();
  
          if (m_jsp != null) {
              // check request for changes in the workplace settings
              initWorkplaceRequestValues(m_settings, m_jsp.getRequest());
          }
          // set cms context accordingly
          initWorkplaceCmsContext(m_settings, m_cms);
  
          // timewarp reset logic
          initTimeWarp(m_settings.getUserSettings(), m_session);
      }
docs: Initializes this workplace class instance.<p>
  
  @param cms the user context
  @param session the session