public int loginBranchAdmin(BranchAdminTO branchAdminTO)
     throws MMSApplicationException, MMSBusinessException {
   System.out.println("BO : BranchAdminBO : loginBranchAdmin : start");
   LOG.info("Inside BO.... UserName = "******"Invalid Username");
   } else if (result == -1) {
     throw new MMSBusinessException("Username/password does not match");
   }
   System.out.println("BO : BranchAdminBO : loginBranchAdmin : end");
   return result;
 }
  public String registerBranchAdmin(BranchAdminTO branchAdminTO, List<BranchTO> branchTOs)
      throws MMSApplicationException, MMSBusinessException {
    System.out.println("BO : BranchAdminBO : registerBranchAdmin : start");
    String branchAdminId;
    BranchAdminDAO branchAdminDAO = new BranchAdminDAO();
    BranchBO branchBO = new BranchBO();
    StatusBO statusBO = new StatusBO();

    validateRegistrationDetails(branchAdminTO, branchTOs);
    StatusTO statusTO = statusBO.getStatusByDOB(branchAdminTO.getDateOfBirth());
    branchAdminTO.setStatusTO(statusTO);

    branchBO.validateBranches(branchTOs);
    branchAdminId = branchAdminDAO.registerBranchAdmin(branchAdminTO);
    branchBO.setBranchAdminId(branchAdminId, branchTOs);

    System.out.println("BO : BranchAdminBO : registerBranchAdmin : end");
    return branchAdminId;
  }