public Branch getBranch() {
   return Branch.getSafeObject(branch);
 }
 public Integer getBranchId() {
   return (branch == null) ? null : branch.getId();
 }