code: public final AtomEntry<Node> readAtomEntry(final InputStream in) {
  
          final Document doc = parseDocument(createDocumentBuilder(), in);
          final XPath xPath = createXPath("atom", "http://www.w3.org/2005/Atom");
  
          final String eventStreamId = findContentText(doc, xPath, "/atom:entry/atom:content/eventStreamId");
          final Integer eventNumber = findContentInteger(doc, xPath, "/atom:entry/atom:content/eventNumber");
          final String eventType = findContentText(doc, xPath, "/atom:entry/atom:content/eventType");
          final String eventId = findContentText(doc, xPath, "/atom:entry/atom:content/eventId");
  
          final Node escMetaNode = findNode(doc, xPath, "/atom:entry/atom:content/metadata/esc-meta");
  
          final String dataContextTypeStr = findContentText(escMetaNode, xPath, "data-content-type");
          final EnhancedMimeType dataContentType = EnhancedMimeType.create(dataContextTypeStr);
          final Node data = findNode(doc, xPath, "/atom:entry/atom:content/data");
  
          final EnhancedMimeType metaContentType;
          final String metaTypeStr;
          final Node meta;
          if (hasMetaData(escMetaNode)) {
              final String metaContentTypeStr = findContentText(escMetaNode, xPath, "meta-content-type");
              metaContentType = EnhancedMimeType.create(metaContentTypeStr);
              metaTypeStr = findContentText(escMetaNode, xPath, "meta-type");
              meta = escMetaNode;
          } else {
              metaContentType = null;
              metaTypeStr = null;
              meta = null;
          }
  
          return new AtomEntry<Node>(eventStreamId, eventNumber, eventType, eventId, dataContentType, metaContentType,
                  metaTypeStr, data, meta);
  
      }
docs: Parses the atom data without creating the event itself from data &amp;
  meta data.
  
  @param in
  Input stream to read.
  
  @return Entry.