* a required field
*/
branchNames.add(MartinlawConstants.RoutingBranches.ANNEX_TYPE_APPROVAL);
log.error("work with doc number '" + context.getDocument().getDocumentId() + "' is null. testing?");
} else {
work.refreshNonUpdateableReferences();
if (work.getAnnexType() != null && work.getAnnexType().getRequiresApproval()) {
branchNames.add(MartinlawConstants.RoutingBranches.ANNEX_TYPE_APPROVAL);
}
if (work.getAnnexType() == null) {
log.error("annexType for work with doc number '" + context.getDocument().getDocumentId() + "' is null");