throw new RemovalNotAllowedException(
"For one or more created TransportOrders it is not allowed to cancel them");
}
}
protected void cancelInitializedOrders(TransportUnit transportUnit) {
<BUG>if (LOGGER.isDebugEnabled()) {</BUG>
LOGGER.debug("Trying to cancel and remove already created but not started TransportOrders");
<BUG>}</BUG>
List<TransportOrder> transportOrders = repository.findByTransportUnitBKAndStates(transportUnit.getBarcode(), TransportOrder.State.CREATED,
TransportOrder.State.INITIALIZED);

throw new RemovalNotAllowedException(
"For one or more created TransportOrders it is not allowed to cancel them");
}
}
protected void cancelInitializedOrders(TransportUnit transportUnit) {
LOGGER.debug("Trying to cancel and remove already created but not started TransportOrders");
List<TransportOrder> transportOrders = repository.findByTransportUnitBKAndStates(transportUnit.getBarcode(), TransportOrder.State.CREATED,
TransportOrder.State.INITIALIZED);
