code: protected void switchToCurrentProject() throws CmsException {
  
          if (m_currentProjectId != null) {
              // switch back to the current users project
              getCms().getRequestContext().setCurrentProject(getCms().readProject(m_currentProjectId));
          }
      }
docs: Helper method to change back from the temporary project to the current project.<p>
  
  @throws CmsException if switching back fails