request.getIdentifier().setResourceId(id);
}
} catch (ExecutionException e) {
final Throwable cause = e.getCause();
log.error(cause.getStackTrace(), cause);
resultHandler.handleError(new IdentificationException(
request, IdentificationErrorType.OTHER, cause));
} catch (InterruptedException e) {
log.debug(e);
} catch (IOException e) {
resultHandler.handleError(new IdentificationException(
request, IdentificationErrorType.OTHER, e));
} finally {
closeRequest();
if (!jobCountDecremented) {
jobCounter.decrement();