}
logger.debug("Determined URL content format from MIME type: " + mimetype);
}
if (destinationTempFile.isFile() && destinationTempFile.length() > 0) {
try {
return parser.parseDocument(destinationTempFile);
} catch (ResourceFormatParserException e) {
throw new ResourceModelSourceException(
"Error requesting URL Resource Model Source: " + configuration.nodesUrl
+ ": Content could not be parsed: "+e.getMessage(),e);
}