Integer clientID = (Integer) clientMap.get("client_id");
contactDetailMap.put("contact_detail_id", null);
contactDetailMap.put("client_id", clientID);
contactDetailMap.put("contact_type_id", new Integer(1));
contactDetailMap.put("contact_detail", "contact 1");
controller.insertRecord("contact_detail", "contact_detail_id", contactDetailMap);
contactDetailMap.put("contact_detail_id", null);
contactDetailMap.put("client_id", clientID);
contactDetailMap.put("contact_type_id", new Integer(2));
contactDetailMap.put("contact_detail", "contact 2");