docs: protected void init() throws CmsException {
  
          m_cms = OpenCms.initCmsObject(m_cms);
          // we want to use autocorrection when writing XML contents back
          //m_cms.getRequestContext().setAttribute(CmsXmlContent.AUTO_CORRECTION_ATTRIBUTE, Boolean.TRUE);
          m_cms.getRequestContext().setSiteRoot("");
          List<CmsPair<CmsResource, CmsResource>> allMatchingResources = Lists.newArrayList();
          for (CmsPair<String, String> pair : m_sourceTargetPairs) {
              List<CmsPair<CmsResource, CmsResource>> matchingResources = getMatchingResources(
                  pair.getFirst(),
                  pair.getSecond());
              allMatchingResources.addAll(matchingResources);
          }
          for (CmsPair<CmsResource, CmsResource> resPair : allMatchingResources) {
              CmsResource source = resPair.getFirst();
              CmsResource target = resPair.getSecond();
              m_translationsById.put(source.getStructureId(), target);
              m_translationsByPath.put(source.getRootPath(), target);
          }
      }