ExtractionParameters extractionParameters,
ExtractionContext extractionContext,
Document in,
ExtractionResult out
) throws IOException, ExtractionException {
final Any23ValueFactoryWrapper valueFactory = new Any23ValueFactoryWrapper(
ValueFactoryImpl.getInstance(), out, extractionContext.getDefaultLanguage()
);
try {
String title = DomUtils.find(in, "/HTML/HEAD/TITLE/text()").trim();
if (title != null && (title.length() != 0)) {
out.writeTriple(extractionContext.getDocumentURI(), vDCTERMS.title, valueFactory.createLiteral(title));
}
} finally {
valueFactory.setIssueReport(null);
}
}