List newBranches = new ArrayList();
if (branches != null) {
Iterator iterator = branches.iterator();
while (iterator.hasNext()) {
InfoBranch infoBranch = (InfoBranch) iterator.next();
if (infoBranch != null && infoBranch.getBranchType() != null
&& !infoBranch.getBranchType().equals(BranchType.COMNBR)) {
newBranches.add(infoBranch);
}
}
}
return newBranches;