code:     public void parseEmbedded(
              InputStream stream, ContentHandler handler, Metadata metadata, boolean outputHtml)
              throws SAXException, IOException {
          if(outputHtml) {
             AttributesImpl attributes = new AttributesImpl();
             attributes.addAttribute("", "class", "class", "CDATA", "package-entry");
             handler.startElement(XHTML, "div", "div", attributes);
          }
  
          String name = metadata.get(Metadata.RESOURCE_NAME_KEY);
          if (name != null && name.length() > 0 && outputHtml) {
              handler.startElement(XHTML, "h1", "h1", new AttributesImpl());
              char[] chars = name.toCharArray();
              handler.characters(chars, 0, chars.length);
              handler.endElement(XHTML, "h1", "h1");
          }
  
          // Use the delegate parser to parse this entry
          try (TemporaryResources tmp = new TemporaryResources()) {
              final TikaInputStream newStream = TikaInputStream.get(new CloseShieldInputStream(stream), tmp);
              if (stream instanceof TikaInputStream) {
                  final Object container = ((TikaInputStream) stream).getOpenContainer();
                  if (container != null) {
                      newStream.setOpenContainer(container);
                  }
              }
              DELEGATING_PARSER.parse(
                                      newStream,
                                      new EmbeddedContentHandler(new BodyContentHandler(handler)),
                                      metadata, context);
          } catch (EncryptedDocumentException ede) {
              // TODO: can we log a warning that we lack the password?
              // For now, just skip the content
          } catch (TikaException e) {
              // TODO: can we log a warning somehow?
              // Could not parse the entry, just skip the content
          }
  
          if(outputHtml) {
             handler.endElement(XHTML, "div", "div");
          }
      }
  
  