final String userAgent = this.getClass().getCanonicalName();
if (LOG.isDebugEnabled()) {
LOG.debug("Starting " + userAgent);
}
URI uri = link.getURI();
final Protocol protocol = droid.getProtocolFactory().getProtocol(uri);
if (protocol == null) {
if (LOG.isWarnEnabled()) {
LOG.warn("Unsupported protocol scheme '" + uri.getScheme() + "'");
}
return;
}
if (protocol.isAllowed(uri)) {
if (LOG.isInfoEnabled()) {
LOG.info("Loading " + uri);
}
ManagedContentEntity entity = null;
try {
entity = protocol.load(uri);
} catch(OutOfMemoryError e) {
LOG.error("Out of memory processing: " + uri + " skipping", e);
throw new DroidsException(e);
}
try {