MavenProjectGenerator implements CreateProjectHandler { @Override public void onCreateProject(FolderEntry baseFolder, Map<String, AttributeValue> attributes, Map<String, String> options) throws ForbiddenException, ConflictException, ServerException { if (options == null || options.isEmpty() || !options.containsKey("type")) { strategies.get(MavenAttributes.SIMPLE_GENERATION_STRATEGY).generateProject(baseFolder, attributes, options); } else { if (strategies.containsKey(options.get("type"))) { strategies.get(options.get("type")).generateProject(baseFolder, attributes, options); } else { String errorMsg = String.format("Generation strategy %s not found", options.get("type")); LOG.warn("MavenProjectGenerator", errorMsg); throw new ServerException(errorMsg); } } } @Inject  MavenProjectGenerator(Set<GeneratorStrategy> generatorStrategies); @Override String getProjectType(); @Override void onCreateProject(FolderEntry baseFolder, Map<String, AttributeValue> attributes,
                                Map<String, String> options);  }
@Test public void testOnCreateProject() throws Exception { }