code: public synchronized void setCms(CmsObject cms) {
  
          if (m_perThreadCmsObject == null) {
              m_perThreadCmsObject = new ThreadLocal<CmsObject>();
          }
          m_perThreadCmsObject.set(cms);
      }
docs: Sets the current cms context.<p>
  
  @param cms the current cms context to set