@Autowired
private TransportOrderRepository repository;
@Override
public void preRemove(TransportUnit entity) throws RemovalNotAllowedException {
Assert.notNull(entity, "Not allowed to call preRemove with null argument");
<BUG>if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Someone is trying to remove the TransportUnit [" + entity + " ], check for existing TransportOrders");

}</BUG>
try {

@Autowired
private TransportOrderRepository repository;
@Override
public void preRemove(TransportUnit entity) throws RemovalNotAllowedException {
Assert.notNull(entity, "Not allowed to call preRemove with null argument");
LOGGER.debug("Someone is trying to remove the TransportUnit [{}], check for existing TransportOrders", entity);
try {
