private Injector pptpInjector;
@Override
public Injector createInjectorAndDoEMFRegistration() {
// These must be registered when running in a non-OSGi environment
Registry registry = EPackage.Registry.INSTANCE;
if(!registry.containsKey(org.eclipse.xtext.XtextPackage.eNS_URI))
registry.put(org.eclipse.xtext.XtextPackage.eNS_URI, org.eclipse.xtext.XtextPackage.eINSTANCE);
if(!registry.containsKey(com.puppetlabs.geppetto.pp.PPPackage.eNS_URI))
registry.put(com.puppetlabs.geppetto.pp.PPPackage.eNS_URI, com.puppetlabs.geppetto.pp.PPPackage.eINSTANCE);
if(!registry.containsKey(com.puppetlabs.geppetto.pp.pptp.PPTPPackage.eNS_URI))
registry.put(
com.puppetlabs.geppetto.pp.pptp.PPTPPackage.eNS_URI,
com.puppetlabs.geppetto.pp.pptp.PPTPPackage.eINSTANCE);
Map<String, Object> factoryMap = Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap();
if(!factoryMap.containsKey("pptp"))