code: public void writeEntry(Object entity, String requestContextURL) throws
              ODataRenderException {
  
          checkNotNull(entity);
          this.contextURL = checkNotNull(requestContextURL);
  
          try {
              writeEntry(entity, false);
          } catch (XMLStreamException | IllegalAccessException | NoSuchFieldException | ODataEdmException e) {
              LOG.error("Not possible to render single entity stream XML");
              throw new ODataRenderException("Not possible to render single entity stream XML: ", e);
          }
      }
docs: <p> Write a single entity to the XML stream. </p> <p> <b>Note:</b> Make sure {@link AtomWriter#startDocument()}
  has been previously invoked to start the XML stream document, and {@link AtomWriter#endDocument()} is invoked
  after to end it. </p>
  
  @param entity            The entity to fill in the XML stream. It can not be {@code null}.
  @param requestContextURL The 'Context URL' to write for the feed. It can not {@code null}.
  @throws ODataRenderException In case it is not possible to write to the XML stream.