* @throws IOException
*/
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;
}