protected JSONObject getCustomerData(Customer customer) { JSONObject jsonObject = new JSONObject(); jsonObject.put(Constants.FORM_CUSTOMER_ID, customer.getId()); jsonObject.put(Constants.FORM_FIRST_NAME, customer.getFirstName()); jsonObject.put(Constants.FORM_LAST_NAME, customer.getLastName()); jsonObject.put(Constants.FORM_STREET, customer.getStreet()); jsonObject.put(Constants.FORM_CITY, customer.getCity()); jsonObject.put(Constants.FORM_STATE, customer.getState()); jsonObject.put(Constants.FORM_ZIP, customer.getZip()); jsonObject.put(Constants.FORM_COUNTRY, customer.getCountry()); return jsonObject; }