createJavaPackageSupport(project, packagePath);
File bin = new File(path + File.separator + "bin");
bin.mkdirs();
TemplateEngine templateEngine = new TemplateEngine();
templateEngine.init();
templateEngine.getWolipsContext().setProjectName(projectName);
templateEngine.getWolipsContext().setPackageName(packageName);
addMavenComponentDefinition(pathRoot, templateEngine, path, "Main", packagePath);
addMavenComponentDefinition(pathRoot, templateEngine, path, "MenuHeader", packagePath);
addMavenComponentDefinition(pathRoot, templateEngine, path, "PageWrapper", packagePath);
templateEngine.addTemplate(new TemplateDefinition(pathRoot+"/Application.java.vm", fullSrcPath, "Application.java", "Application.java"));
templateEngine.addTemplate(new TemplateDefinition(pathRoot+"/DirectAction.java.vm", fullSrcPath, "DirectAction.java", "DirectAction.java"));
templateEngine.addTemplate(new TemplateDefinition(pathRoot+"/Session.java.vm", fullSrcPath, "Session.java", "Session.java"));
templateEngine.addTemplate(new TemplateDefinition(pathRoot+"/.classpath.vm", path, ".classpath", ".classpath"));
templateEngine.addTemplate(new TemplateDefinition(pathRoot+"/.project.vm", path, ".project", ".project"));
templateEngine.addTemplate(new TemplateDefinition(pathRoot+"/build.xml.vm", path, "build.xml", "build.xml"));
templateEngine.addTemplate(new TemplateDefinition(pathRoot+"/build.properties.vm", path, "build.properties", "build.properties"));
templateEngine.addTemplate(new TemplateDefinition(pathRoot+"/Properties.vm", path, "Properties", "Properties"));
templateEngine.addTemplate(new TemplateDefinition(pathRoot+"/user.d2wmodel.vm", path, "user.d2wmodel", "user.d2wmodel"));
createWebServicesSupport(project, templateEngine);
templateEngine.run(progressMonitor);
}