Save parametersMeasured
ParametersMeasured and ObservationCapability set an object as a model attribute not just a string or number.
Need to check attributeName is set before treating it as an object rather than a string.
Split out the setObject method to allow it to tested