}
}
droidCore.submit(request);
submissionThrottle.apply();
} catch (IOException e) {
IdentificationErrorType error = file.exists() ? IdentificationErrorType.ACCESS_DENIED
: IdentificationErrorType.FILE_NOT_FOUND;
if (error.equals(IdentificationErrorType.ACCESS_DENIED)) {
log.warn(String.format("Access was denied to the file: [%s]", file.getAbsolutePath()));
} else {
log.warn(String.format("File not found: [%s]", file.getAbsolutePath()));
}
resultHandler.handleError(new IdentificationException(request, error, e));