code: void writeFeedId(Object entity, NavigationProperty property) throws XMLStreamException, ODataEdmException {
  
          xmlWriter.writeStartElement(ATOM_ID);
  
          if (entity != null) {
              xmlWriter.writeCharacters(String.format("%s/%s/%s", oDataUri.serviceRoot(),
                      getEntityWithKey(entity), property.getName()));
          } else {
              String id;
              if (ODataUriUtil.isActionCallUri(oDataUri) ||
                      ODataUriUtil.isFunctionCallUri(oDataUri)) {
                  id = buildFeedIdFromOperationCall(oDataUri);
              } else {
                  id = getEntitySetId(oDataUri).get();
              }
              xmlWriter.writeCharacters(id);
          }
          xmlWriter.writeEndElement();
      }
docs: Write an {@code <id>} element when the parent element is a {@code <feed>} element.
  
  @param entity   The enclosing entity for which the feed is getting generated.
  @param property The property that will be expanded in the feed.
  @throws XMLStreamException If unable to write to stream
  @throws ODataEdmException  If unable to write feed id to stream