docs: private ContentStream jcrBinaryContent( Document document ) {
          // pickup node properties
          Document props = document.getDocument("properties").getDocument(JcrLexicon.Namespace.URI);
  
          // extract binary value and content
          Binary value = props.getBinary("data");
  
          if (value == null) {
              return null;
          }
  
          byte[] content = value.getBytes();
          String fileName = props.getString("fileName");
          String mimeType = props.getString("mimeType");
  
          // wrap with input stream
          ByteArrayInputStream bin = new ByteArrayInputStream(content);
          bin.reset();
  
          // create content stream
          return new ContentStreamImpl(fileName, BigInteger.valueOf(content.length), mimeType, bin);
      }