transportOrder.setState(state);
ctx.publishEvent(new TransportServiceEvent(transportOrder.getPk(), TransportOrderUtil
.convertToEventType(state)));
} catch (StateChangeException sce) {
LOGGER.error("Could not turn TransportOrder: [{}] into [{}], because of [{}]", transportOrder.getPk(), state, sce.getMessage());
<BUG>Message problem = new Message(sce.getMessage());
</BUG>
transportOrder.setProblem(problem);
failure.add(transportOrder.getPk().toString());
}

transportOrder.setState(state);
ctx.publishEvent(new TransportServiceEvent(transportOrder.getPk(), TransportOrderUtil
.convertToEventType(state)));
} catch (StateChangeException sce) {
LOGGER.error("Could not turn TransportOrder: [{}] into [{}], because of [{}]", transportOrder.getPk(), state, sce.getMessage());
Message problem = new Message.Builder().withMessage(sce.getMessage()).build();
transportOrder.setProblem(problem);
failure.add(transportOrder.getPk().toString());
