@SuppressWarnings("rawtypes")
Set factories = this.extractorRegistry.getExtractorFactories(mimeType);
Model result = null;
if (factories != null && !factories.isEmpty()) {
// get extractor from the first available factory
ExtractorFactory factory =
(ExtractorFactory)factories.iterator().next();
Extractor extractor = factory.get();
RDFContainerFactory containerFactory =
new RDFContainerFactoryImpl();
RDFContainer container =
containerFactory.getRDFContainer(docId);
extractor.extract(