code: public static void main(String[] args) {
  		final String projectName = "org.eclipse.xtext.common.types";
  		
  		new StandaloneSetup() {{
  			registerProject(new File(".project").getAbsoluteFile());
  		}};
  		
  		new DirectoryCleaner() {{
  			setDirectory("../"+projectName+"/emf-gen");
  		}}.invoke(null);
  		
  		
  		new EcoreGenerator() {{
  			setGenModel("platform:/resource/"+projectName+"/model/JavaVMTypes.genmodel");
  			addSrcPath("platform:/resource/"+projectName+"/src");
  			setLineDelimiter("\n");
  		}}.invoke(null);
  	}
docs: Can't use MWE2 because of circular dependencies