*/
private long createExperiment2(){
ExperimentSetupImpl expSetup = (ExperimentSetupImpl) createExperimentSetup();
TestbedManagerImpl tbmanager = TestbedManagerImpl.getInstance();
/**
* this call persists the ExperimentImpl. When the Experiment is persisted
* ExperimentSetupImpl-->BasicPropertiesImpl are persisted as well through the
* @OneToOne(cascade={CascadeType.ALL})annotation
**/
System.out.println("createExperiment2: hier1");
ExperimentImpl exp = (ExperimentImpl)tbmanager.createNewExperiment();
System.out.println("createExperiment2: hier2: received exp from createNewExp with ID: "+exp.getEntityID());
exp.setState(ExperimentSetup.STATE_COMPLETED);
System.out.println("createExperiment2: hier3");
exp.setExperimentSetup(expSetup);
//as the manager and the ExperimentImpl object are detached it is required to execute:
System.out.println("createExperiment2: manager.updateExperiment with ID: "+exp.getEntityID());
tbmanager.updateExperiment(exp);
System.out.println("createExperiment2: hier4");
return exp.getEntityID();
}