docs: protected void rewriteOtherRelations(CmsResource res, Collection<CmsRelation> relations) throws CmsException {
  
          LOG.info("Rewriting non-content links for " + res.getRootPath());
          for (CmsRelation rel : relations) {
              CmsUUID targetId = rel.getTargetId();
              CmsResource newTargetResource = m_translationsById.get(targetId);
              CmsRelationType relType = rel.getType();
              if (!relType.isDefinedInContent()) {
                  if (newTargetResource != null) {
                      m_cms.deleteRelationsFromResource(
                          rel.getSourcePath(),
                          CmsRelationFilter.TARGETS.filterStructureId(rel.getTargetId()).filterType(relType));
                      m_cms.addRelationToResource(
                          rel.getSourcePath(),
                          newTargetResource.getRootPath(),
                          relType.getName());
                  }
              }
          }
      }