ComponentPackageImpl theComponentPackage = (ComponentPackageImpl) (EPackage.Registry.INSTANCE .getEPackage(ComponentPackage.eNS_URI) instanceof ComponentPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(ComponentPackage.eNS_URI) : ComponentPackageImpl.eINSTANCE);
    public static ModelPackage init()    {        if (isInited)            return (ModelPackage) EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI);        // Obtain or create and register package        ModelPackageImpl theModelPackage = (ModelPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE            .getEPackage(eNS_URI)            : new ModelPackageImpl());        isInited = true;        // Initialize simple dependencies        XMLTypePackageImpl.init();        // Obtain or create and register interdependencies        TypePackageImpl theTypePackage = (TypePackageImpl) (EPackage.Registry.INSTANCE.getEPackage(TypePackage.eNS_URI) instanceof TypePackageImpl ? EPackage.Registry.INSTANCE            .getEPackage(TypePackage.eNS_URI)            : TypePackageImpl.eINSTANCE);        ComponentPackageImpl theComponentPackage = (ComponentPackageImpl) (EPackage.Registry.INSTANCE            .getEPackage(ComponentPackage.eNS_URI) instanceof ComponentPackageImpl ? EPackage.Registry.INSTANCE            .getEPackage(ComponentPackage.eNS_URI) : ComponentPackageImpl.eINSTANCE);        AttributePackageImpl theAttributePackage = (AttributePackageImpl) (EPackage.Registry.INSTANCE            .getEPackage(AttributePackage.eNS_URI) instanceof AttributePackageImpl ? EPackage.Registry.INSTANCE            .getEPackage(AttributePackage.eNS_URI) : AttributePackageImpl.eINSTANCE);        DataPackageImpl theDataPackage = (DataPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI) instanceof DataPackageImpl ? EPackage.Registry.INSTANCE            .getEPackage(DataPackage.eNS_URI)            : DataPackageImpl.eINSTANCE);        LayoutPackageImpl theLayoutPackage = (LayoutPackageImpl) (EPackage.Registry.INSTANCE            .getEPackage(LayoutPackage.eNS_URI) instanceof LayoutPackageImpl ? EPackage.Registry.INSTANCE            .getEPackage(LayoutPackage.eNS_URI) : LayoutPackageImpl.eINSTANCE);        // Create package meta-data objects        theModelPackage.createPackageContents();        theTypePackage.createPackageContents();        theComponentPackage.createPackageContents();        theAttributePackage.createPackageContents();        theDataPackage.createPackageContents();        theLayoutPackage.createPackageContents();        // Initialize created meta-data        theModelPackage.initializePackageContents();        theTypePackage.initializePackageContents();        theComponentPackage.initializePackageContents();        theAttributePackage.initializePackageContents();        theDataPackage.initializePackageContents();        theLayoutPackage.initializePackageContents();        // Mark meta-data to indicate it can't be changed        theModelPackage.freeze();        return theModelPackage;    }