if (product.getProductType().getExtractors() != null
&& product.getProductType().getExtractors().size() > 0) {
for (Iterator<ExtractorSpec> i = product.getProductType().getExtractors()
.iterator(); i.hasNext();) {
ExtractorSpec spec = i.next();
FilemgrMetExtractor extractor = GenericFileManagerObjectFactory
.getExtractorFromClassName(spec.getClassName());
extractor.configure(spec.getConfiguration());
LOG.log(Level.INFO, "Running Met Extractor: ["
+ extractor.getClass().getName()
+ "] for product type: ["
+ product.getProductType().getName() + "]");
try {
met = extractor.extractMetadata(product, met);
} catch (MetExtractionException e) {
e.printStackTrace();
LOG.log(Level.WARNING,
"Exception extractor metadata from product: ["
+ product.getProductName()
+ "]: using extractor: ["
+ extractor.getClass().getName()
+ "]: Message: " + e.getMessage());
}
}
}