code: private void serializeEntityDocument(EntityDocument entityDocument) {
  		try {
  			if (this.entityDocumentCount > 0) {
  				this.outputStream.write(JSON_SEP);
  			}
  			mapper.writeValue(this.outputStream, entityDocument);
  		} catch (IOException e) {
  			reportException(e);
  		}
  		this.entityDocumentCount++;
  	}
docs: Writes the JSON serialization of the given {@link EntityDocument}.
  
  @param entityDocument
  the document to serialize