// Initialize simple dependencies
XMLTypePackage.eINSTANCE.eClass();
// Obtain or create and register interdependencies
Bpmn2PackageImpl theBpmn2Package = (Bpmn2PackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(Bpmn2Package.eNS_URI) instanceof Bpmn2PackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(Bpmn2Package.eNS_URI) : Bpmn2Package.eINSTANCE);
BpmnDiPackageImpl theBpmnDiPackage = (BpmnDiPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(BpmnDiPackage.eNS_URI) instanceof BpmnDiPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(BpmnDiPackage.eNS_URI) : BpmnDiPackage.eINSTANCE);
DcPackageImpl theDcPackage = (DcPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) instanceof DcPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(DcPackage.eNS_URI) : DcPackage.eINSTANCE);
// Load packages
theBpmn2Package.loadPackage();
// Create package meta-data objects
theDiPackage.createPackageContents();
theBpmnDiPackage.createPackageContents();
theDcPackage.createPackageContents();
// Initialize created meta-data
theDiPackage.initializePackageContents();
theBpmnDiPackage.initializePackageContents();
theDcPackage.initializePackageContents();
// Fix loaded packages
theBpmn2Package.fixPackageContents();
// Register package validator
EValidator.Registry.INSTANCE.put(theDiPackage, new EValidator.Descriptor() {
public EValidator getEValidator() {
return DiValidator.INSTANCE;