code: public void writeData(Object entity, EntityType entityType) throws XMLStreamException, ODataRenderException {
  
          xmlWriter.writeStartElement(ODATA_CONTENT);
          xmlWriter.writeAttribute(TYPE, XML.toString());
          xmlWriter.writeStartElement(METADATA, ODATA_PROPERTIES, "");
  
          marshall(entity, entityType);
  
          xmlWriter.writeEndElement();
          xmlWriter.writeEndElement();
      }
docs: Write the data for a given entity.
  
  @param entity     The given entity.
  @param entityType The entity type.
  @throws XMLStreamException if unable to render the entity
  @throws ODataRenderException if unable to render the entity