code: @Override
      @Transactional
      public void importData(Tuple<String, Document> data) {
          final Document resultDoc = data.second;
  
          final Element fragmentDefElement =
                  this.xPathOperations.evaluate(
                          "//*[local-name() = 'fragment']", resultDoc, XPathConstants.NODE);
          if (fragmentDefElement == null) {
              throw new IllegalArgumentException(
                      "Could not find required dlm:fragment element in fragment-definition file");
          }
          final String fragmentName = fragmentDefElement.getAttribute("name");
  
          FragmentDefinition fragmentDefinition =
                  this.fragmentDefinitionDao.getFragmentDefinition(fragmentName);
          if (fragmentDefinition == null) {
              fragmentDefinition = new FragmentDefinition(fragmentDefElement);
          }
  
          fragmentDefinition.loadFromEelement(fragmentDefElement);
  
          this.fragmentDefinitionDao.updateFragmentDefinition(fragmentDefinition);
      }
docs: /* (non-Javadoc)
  @see org.apereo.portal.io.xml.IDataImporter#importData(java.lang.Object)