*/
private void createProcessSampleMain(IJavaProject project, IProgressMonitor monitor)
throws JavaModelException, IOException {
String s = "org/jbpm/eclipse/wizard/project/ProcessMain-advanced.java.template";
IFolder folder = project.getProject().getFolder("src/main/java");
IPackageFragmentRoot packageFragmentRoot = project
.getPackageFragmentRoot(folder);
IPackageFragment packageFragment = packageFragmentRoot
.createPackageFragment("com.sample", true, monitor);
InputStream inputstream = getClass().getClassLoader()
.getResourceAsStream(s);
packageFragment.createCompilationUnit("ProcessMain.java", new String(
readStream(inputstream)), true, monitor);