if (isTargetAvailable(optionalTarget.get())) {
assignTarget(vote);
vote.complete();
} else {
String msg = translator.translate(TMSMessageCodes.TARGET_BLOCKED_MSG, vote.getTarget(), vote.getTransportOrder().getPersistentKey());
<BUG>vote.addMessage(new Message(msg, TMSMessageCodes.TARGET_BLOCKED));
LOGGER.debug(msg);</BUG>
}
}
}

if (isTargetAvailable(optionalTarget.get())) {
assignTarget(vote);
vote.complete();
} else {
String msg = translator.translate(TMSMessageCodes.TARGET_BLOCKED_MSG, vote.getTarget(), vote.getTransportOrder().getPersistentKey());
vote.addMessage(new Message.Builder().withMessage(msg).withMessageNo(TMSMessageCodes.TARGET_BLOCKED_MSG).build());
LOGGER.debug(msg);
}
}
}
