code: public Value newValue(Object value, QualifiedName type) {
  	if (value==null) return null;
          Value res =  of.createValue();
          res.setType(type);
          res.setValueFromObject(value);
          return res;
        }
docs: Factory method to create an instance of the PROV-DM prov:value attribute (see {@link Value}).
  Use class {@link Name} for predefined {@link QualifiedName}s for the common types.
  @param value an {@link Object}
  @param type a {@link QualifiedName} to denote the type of value
  @return a new {@link Value}