{
    if (isInited) return (Ecore2XMLPackage)EPackage.Registry.INSTANCE.getEPackage(Ecore2XMLPackage.eNS_URI);

    // Obtain or create and register package
    Ecore2XMLPackageImpl theEcore2XMLPackage = (Ecore2XMLPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof Ecore2XMLPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new Ecore2XMLPackageImpl());

    isInited = true;

    // Initialize simple dependencies
    EcorePackage.eINSTANCE.eClass();

    // Create package meta-data objects
    theEcore2XMLPackage.createPackageContents();

    // Initialize created meta-data
    theEcore2XMLPackage.initializePackageContents();

    // Mark meta-data to indicate it can't be changed
    theEcore2XMLPackage.freeze();

    return theEcore2XMLPackage;
  }