//TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
Experiment exp = expBean.getExperiment();
List<PropertyEvaluationRecordImpl> propEvalRecs = exp.getExperimentEvaluation().getPropertyEvaluation(digObjectRefCopy);
PropertyEvaluationRecordImpl propEvalRec = null;
if(propEvalRecs!=null){
boolean bIsUpdate = false;
for(PropertyEvaluationRecordImpl propEvalR : propEvalRecs){
if(propEvalR.getPropertyID().equals(propertyID)){
propEvalRec = propEvalR;
//update an existing evaluation record
propEvalRec.setPropertyEvalValue(evalValue);
bIsUpdate = true;
}
}
//create a new evaluation record
if(!bIsUpdate){
propEvalRec = new PropertyEvaluationRecordImpl(propertyID);
propEvalRec.setPropertyEvalValue(evalValue);
}
exp.getExperimentEvaluation().addPropertyEvaluation(digObjectRefCopy, propEvalRec);
}