private Role getUserRole(Customer cust) { String custType = cust.getCustType(); String roleId = null; if (CustType.CUST_ADV.equals(custType)) { roleId = Constants.RoleId.ADVERTISER; } else if (CustType.CUST_PRO.equals(custType)) { roleId = Constants.RoleId.PROVIDER; } else { roleId = Constants.RoleId.ORGANIZATION; } return roleDao.findOne(roleId); }