if (LOG.isDebugEnabled()) {
LOG.debug("About to process file: " + file + " using exchange: " + exchange);
}
if (processStrategy.begin(endpoint, exchange, file)) {
getProcessor().process(exchange);
processStrategy.commit(endpoint, exchange, file);
}
else {
if (LOG.isDebugEnabled()) {
LOG.debug(endpoint + " cannot process file: " + file);
}