Job job=new Job(SessionFactory.getInstance().getJobQueue(),"createProject","Creating project...",false);
job.addRunnable(runnable);
job.addSync();
SessionFactory.getInstance().schedule(job);
try {
Project project=(Project)job.waitResult();
System.out.println("Project returned end lock");
return project;
} catch (Exception e) {//Forward exception + Alert
e.printStackTrace();
return null;