{
        if (referencedGenPackage.getEcorePackage() != null && 
             (referencedGenPackage.getEcorePackage().getNsURI() == null ? 
                ePackage.getNsURI() == null :
                referencedGenPackage.getEcorePackage().getNsURI().equals(ePackage.getNsURI())))
        {
          return referencedGenPackage;
        }
      }