if (to == 0) {
to = ((HttpComponent) getServiceUnit().getComponent()).getConfiguration()
.getConsumerProcessorSuspendTime();
}
exchanges.put(exchange.getExchangeId(), exchange);
boolean result = cont.suspend(to);
exchange = exchanges.remove(exchange.getExchangeId());
if (!result) {
locks.remove(exchange.getExchangeId());
throw new Exception("Exchange timed out");
}