code: protected void setTemplateField() {
  
          try {
              CmsProperty template = m_clonedCms.readPropertyObject(
                  getSiteRoot(),
                  CmsPropertyDefinition.PROPERTY_TEMPLATE,
                  false);
              if (template.isNullProperty()) {
                  m_simpleFieldTemplate.setValue(null);
              } else {
                  m_simpleFieldTemplate.setValue(template.getStructureValue());
              }
          } catch (CmsException e) {
              m_simpleFieldTemplate.setValue(null);
          }
      }
docs: Sets the template field depending on current set site root field(s).<p>