code: protected void setupCms(CmsObject cms) {
  
          cms.getRequestContext().setUri("/");
          cms.getRequestContext().setSiteRoot((String)m_site.getValue());
          try {
              cms.getRequestContext().setCurrentProject(cms.readProject((CmsUUID)m_project.getValue()));
          } catch (CmsException e) {
              LOG.error("Unable to read Project", e);
          }
      }
docs: Sets up given CmsObject with currently set Project and Site.<p>
  
  @param cms CmsObject to gets adjusted to input fields