code: private void writeFeed(Collection<?> entities, Object enclosingEntity, NavigationProperty property,
                             Map<String, Object> meta) throws XMLStreamException, ODataRenderException,
              NoSuchFieldException, IllegalAccessException, ODataEdmException {
  
          final boolean isInlineFeed = (enclosingEntity != null);
  
          startFeed(isInlineFeed);
  
          if (ODataUriUtil.hasCountOption(oDataUri) &&
                  meta != null && meta.containsKey("count")) {
              metadataWriter.writeCount(meta.get("count"));
          }
  
          metadataWriter.writeFeedId(enclosingEntity, property);
          metadataWriter.writeTitle();
          metadataWriter.writeUpdate(dateTime);
          metadataWriter.writeFeedLink(enclosingEntity, property);
  
          for (Object entity : entities) {
              writeEntry(entity, true);
          }
  
          endFeed();
      }
docs: <p>Write a list of entities (feed) to the XML stream.</p> <p>The entities to write will be either the main
  content of the feed XML stream, or in-lined as part of the content of navigation property (relevant for the
  $expand operation).</p>
  
  @param entities        The list of entities to fill in the XML stream.
  @param enclosingEntity Entity that enclose this list of entities.
  If it is null, it implies that the feed is at the root.
  @param property        The NavigationProperty for which the feed is generated.
  @param meta            Additional metadata to write.
  @throws XMLStreamException     if unable to render the feed
  @throws ODataRenderException   if unable to render the feed
  @throws NoSuchFieldException   if unable to render the feed
  @throws IllegalAccessException if unable to render the feed