// Look up the definition:
ManuallyMeasuredPropertyHandlerImpl mm = ManuallyMeasuredPropertyHandlerImpl.getInstance();
UserBean user = (UserBean)JSFUtil.getManagedObject("UserBean");
ManualMeasurementBackingBean mmbb = (ManualMeasurementBackingBean)JSFUtil.getManagedObject("ManualMeasurementBackingBean");
List<ManuallyMeasuredProperty> mps = mm.loadAllManualProperties(user.getUserid());
ManuallyMeasuredProperty mp = null;
for( ManuallyMeasuredProperty amp : mps ) {
if( amp.getURI().equals(mmbb.getNewManProp()) ) mp = amp;
}
if( mp == null ) {
log.error("No property ["+mmbb.getNewManProp()+"] found!");
return;
}
// Lookup the event:
MeasurementEventImpl mev = this.getManualMeasurementEvent();
// Make the property
Property p = new Property.Builder( URI.create(mp.getURI()) ).description(mp.getDescription()).name(mp.getName()).build();
DigitalObjectCompare.createMeasurement(mev, p, this.dobUri1, this.newManVal1 );
DigitalObjectCompare.createMeasurement(mev, p, this.dobUri2, this.newManVal2 );
ExperimentInspector.persistExperiment();
}