code: private void marshallPrimitive(Object value, PrimitiveType primitiveType) throws XMLStreamException {
  
          LOG.trace("Primitive value: {} of type: {}", value, primitiveType);
          if (value != null) {
              xmlWriter.writeCharacters(value.toString());
          }
      }
docs: Marshall a primitive value.
  
  @param value         The value to marshall. Can be {@code null}.
  @param primitiveType The OData primitive type.