public String execute(HttpServletRequest request, HttpServletResponse arg1)
			throws Exception {
		ResourceBundle bundle = Resource.getInstance().getRequestToObjectMap();
		
		this.txtId = generalTools.NullToEmpty((String)request.getParameter("txtId"));
		this.txtDescription = generalTools.NullToEmpty((String)request.getParameter("txtDescription"));
		this.txtStatus = generalTools.NullToEmpty((String)request.getParameter("txtStatus"));
		
		this.hMode = generalTools.NullToEmpty((String)request.getParameter("hMode"));
		this.id = generalTools.NullToEmpty((String)request.getParameter("id"));
				
		PaymentMethodTO paymentMethodTO = paymentMethodService.setAll(txtId, txtDescription, txtStatus);
		
		String btn = (String)request.getParameter("btn");
		if (btn!=null) {
			if (btn.equalsIgnoreCase(Multilingual.getLabel(null, "common.save"))) {
				if (hMode.equalsIgnoreCase(ConstantValue.NEW)) {
					if (paymentMethodService.checkMandatoryValues(paymentMethodTO)) {
						paymentMethodService.insertRecord(paymentMethodTO);
						paymentMethodTO = paymentMethodService.loadRecordByDesc(paymentMethodTO.getDescription());
						msg = "common.insert_success";
					} else {
						request.setAttribute("hMode", ConstantValue.NEW);
						msg = "alert.insert_mandatory";
					}
				} else {
					boolean updateBranchPaymentMethod = false;
					PaymentMethodTO checkTO = paymentMethodService.loadRecordById(txtId);
					if (!checkTO.getStatus().equalsIgnoreCase(paymentMethodTO.getStatus())) {
						updateBranchPaymentMethod = true;
					}
					
					if (paymentMethodService.checkMandatoryValues(paymentMethodTO)) {
						boolean isSuccess = paymentMethodService.updateRecord(paymentMethodTO);
						if (isSuccess && updateBranchPaymentMethod) {
							BranchPaymentMethodTO branchPymtMthd = new BranchPaymentMethodTO();
							PaymentMethodTO pymtMthdTO = new PaymentMethodTO();
							branchPymtMthd.setPaymentMethod(pymtMthdTO);
							branchPymtMthd.getPaymentMethod().setId(paymentMethodTO.getId());
							branchPymtMthd.setStatus(paymentMethodTO.getStatus());
							paymentMethodService.updateBranchPaymentMethodRecord(branchPymtMthd);
						}
						
						paymentMethodTO = paymentMethodService.loadRecordById(paymentMethodTO.getId());
						msg = "common.update_success";
					} else {
						paymentMethodTO = checkTO;
						msg = "alert.insert_mandatory";
					}
				}
			}
		} else if (this.id!=null) {
			paymentMethodTO = paymentMethodService.loadRecordById(id);
		} else {
			hMode = ConstantValue.NEW;
		}
		
		request.setAttribute("paymentMethodTO", paymentMethodTO);
		request.setAttribute("msg", msg);
		request.setAttribute("includePage", bundle.getString("admin/paymentMethodIUD.URL"));
		
		return CommandHelper.getTempate(request, bundle);
	}