private void addAVSFields(Integer userId, Map<String, Object> data) { try { ContactBL contact = new ContactBL(); contact.set(userId); ContactDTO entity = contact.getEntity(); data.put("city", entity.getCity()); data.put("email", entity.getEmail()); data.put("customerAccountCode", userId.toString()); data.put("phone", entity.getPhoneNumber()); data.put("state", entity.getStateProvince()); data.put("street", entity.getAddress1() + " " + entity.getAddress2()); data.put("zipCode", entity.getPostalCode()); data.put("isOrganization", Boolean.FALSE); } catch (Exception e) { log.error("Exception when trying to add the AVS fields", e); } }