code: public void importRelations(CmsObject cms) throws CmsException {
  
          for (CmsResourceImportData resData : m_moduleData.getResourceData()) {
              if (!resData.getRelations().isEmpty()) {
                  CmsResource importResource = resData.getImportResource();
                  if (importResource != null) {
                      importResource = cms.readResource(importResource.getStructureId(), CmsResourceFilter.ALL);
                      updateRelations(cms, importResource, resData.getRelations());
                  }
              }
          }
  
      }
docs: Update relations for all imported resources.<p>
  
  @param cms the current CMS context
  @throws CmsException if something goes wrong