parser.setContentHandler(linkExtractor);
InputStream instream = entity.obtainContent();
try {
parser.parse(new InputSource(instream));
} catch (SAXException ex) {
throw new ContentFormatViolationException("Failure parsing HTML content", ex);
} finally {
instream.close();
}
return new ParseImpl(newLink.getId(),linkExtractor.getLinks());
}