exportData.genPackageToReferencedGenPackages = genPackageToReferencedGenPackages != null && genPackageToReferencedGenPackages.size() > 0 ?
exportData.genPackageToReferencedGenPackages = genPackageToReferencedGenPackages != null && !genPackageToReferencedGenPackages.isEmpty() ?
  public void export(Monitor monitor) throws Exception  {    Map nsURIToReferencedGenPackage = null;    Map referencedGenPackageToArtifactURI = null;     if (referencedGenPackageToInfoMap != null)    {      referencedGenPackageToArtifactURI = new HashMap(referencedGenPackageToInfoMap.size());      nsURIToReferencedGenPackage = new HashMap(referencedGenPackageToInfoMap.size());      List referencedGenPackages = computeValidReferencedGenPackages();      for (Iterator i = referencedGenPackages.iterator(); i.hasNext();)      {        GenPackage genPackage = (GenPackage)i.next();        URI artifactURI = getReferencedGenPackageExportInfo(genPackage).getArtifactURI();        referencedGenPackageToArtifactURI.put(genPackage, artifactURI);        nsURIToReferencedGenPackage.put(genPackage.getNSURI(), genPackage);      }    }        Map genPackageToArtifactURI = null;    Map genPackageToReferencedGenPackages = null;    if (ePackageToInfoMap != null && ePackageToGenPackageMap != null)    {      genPackageToArtifactURI = new HashMap(ePackageToInfoMap.size());      genPackageToReferencedGenPackages = new HashMap(ePackageToInfoMap.size());            List ePackages = computeEPackagesToConvert();      for (Iterator i = ePackages.iterator(); i.hasNext();)      {        EPackage ePackage = (EPackage)i.next();        GenPackage genPackage = (GenPackage)ePackageToGenPackageMap.get(ePackage);        if (genPackage != null)        {          List requiredPackages = ConverterUtil.computeRequiredPackages(ePackage);          List requiredGenPackages = new ConverterUtil.GenPackageList(requiredPackages.size());          for (Iterator j = requiredPackages.iterator(); j.hasNext();)          {            EPackage referencedEPackages = (EPackage)j.next();            if (nsURIToReferencedGenPackage != null)            {              GenPackage referencedGenPackage = (GenPackage)nsURIToReferencedGenPackage.get(referencedEPackages.getNsURI());              if (referencedGenPackage != null)              {                requiredGenPackages.add(referencedGenPackage);               }            }          }           if (requiredGenPackages.size() > 0)          {            genPackageToReferencedGenPackages.put(genPackage, requiredGenPackages);          }                    EPackageExportInfo exportInfo = getEPackageExportInfo(ePackage);          String artifactLocation = exportInfo.getArtifactLocation();          if (artifactLocation != null)          {            genPackageToArtifactURI.put(genPackage, computeArtifactURI(artifactLocation));          }                  }      }    }        if (genPackageToArtifactURI == null || genPackageToArtifactURI.isEmpty())    {      throw new DiagnosticException(new BasicDiagnostic(Diagnostic.ERROR, ExporterPlugin.ID, 0, ExporterPlugin.INSTANCE.getString("_UI_NoPackagesToExport_error"), null));    }    else    {      ExportData exportData = new ExportData();      exportData.genPackageToArtifactURI = genPackageToArtifactURI;      exportData.referencedGenPackagesToArtifactURI = referencedGenPackageToArtifactURI != null && referencedGenPackageToArtifactURI.size() > 0 ?         referencedGenPackageToArtifactURI :         Collections.EMPTY_MAP;      exportData.genPackageToReferencedGenPackages = genPackageToReferencedGenPackages != null && genPackageToReferencedGenPackages.size() > 0 ?         genPackageToReferencedGenPackages :         Collections.EMPTY_MAP;            doExport(monitor, exportData);    }  }