code: private Properties extractMetaInfoProperties(Context ctx, Content content) throws IllegalArgumentException,
        RepositoryException, IOException, DocumentReadException, HandlerNotFoundException
     {
        DocumentReaderService readerService =
           (DocumentReaderService)((ExoContainer)ctx.get(InvocationContext.EXO_CONTAINER))
              .getComponentInstanceOfType(DocumentReaderService.class);
  
        if (readerService == null)
        {
           throw new IllegalArgumentException("No DocumentReaderService configured for current container");
        }
  
        Properties props = new Properties();
        props = readerService.getDocumentReader(content.mimeType).getProperties(content.stream);
  
        return props;
     }
docs: Extracts some metainfo properties from content using {@link DocumentReaderService}.
  
  @throws IllegalArgumentException if {@link DocumentReaderService} not configured
  @throws RepositoryException
  @throws HandlerNotFoundException
  @throws DocumentReadException
  @throws IOException