ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
BatchExecutionRecordImpl batch = expBean.getExperiment().getExperimentExecutable().getBatchExecutionRecords().iterator().next();
ExecutionRecordImpl run = batch.getRuns().iterator().next();
// Remove the Event itself:
ExperimentPersistencyRemote db = tbm.getExperimentPersistencyRemote();
setTargetInvocation(null);
setTargetExecution(null);
db.removeMeasurementEvent(this);
log.info("deleteMeasurementEvent: Removed the event, now updating the experiment");
// And clip it out of the parent:
MeasurementEventImpl toRemove = null;
for( MeasurementEventImpl fme : run.getMeasurementEvents() ) {