if (this.getBranchType().equals(BranchType.COMNBR)) {
if (getBranchType() != null && getBranchType().equals(BranchType.COMNBR)) {
    public Boolean representsCommonBranch() {        if (this.getBranchType().equals(BranchType.COMNBR)) {            return Boolean.TRUE;        }        return Boolean.FALSE;    }