code: public String getSite() {
  
          String site = null;
          if ((m_siteMode == SITE_MODE_MATCHING) || (m_cms == null)) {
              site = OpenCms.getSiteManager().getSiteRoot(m_resource.getRootPath());
          } else if (m_siteMode == SITE_MODE_CURRENT) {
              site = m_cms.getRequestContext().getSiteRoot();
          } else if (m_siteMode == SITE_MODE_ROOT) {
              site = "";
          }
          return (site == null ? "" : site);
      }
docs: Returns the site of the current resources,
  taking into account the set site mode.<p>
  
  @return the site path