// ///////////////////////////////////////////////////
// value
// ///////////////////////////////////////////////////
private void addValue() {
final ObjectAdapter valueAdapter = objectMember.get(objectAdapter);
// use the runtime type if we have a value, else the compile time type of the member otherwise
final ObjectSpecification spec = valueAdapter != null? valueAdapter.getSpecification(): objectMember.getSpecification();
final ValueFacet valueFacet = spec.getFacet(ValueFacet.class);
if (valueFacet != null) {
JsonValueEncoder.appendValueAndFormat(spec, valueAdapter, representation);
return;