while (branch.getParent() != null && branch.getParent().getBranchId() != 0) { // NOPMD by r39
categoryDesc.insert(0, branch.getParent().getName() + " > ");
branch = branch.getParent();
}
retval.add(new Category(nextBranch.getBranchId(), categoryDesc.toString())); // NOPMD by r39
}
}
return retval;
}