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();
}

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 ( ) ; }
write the data for a given entity .
