clientMap.put("occupation_id", new Integer(1));
clientMap.put("insurance_company_id", new Integer(1));
clientMap.put("updater_person_id", new Integer(1));
try {
GenericController controller = GenericController.getInstance();
controller.insertRecord("client", "client_id", clientMap);
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");
controller.insertRecord("contact_detail", "contact_detail_id", contactDetailMap);
// cascade delete
String[] childTables = {"contact_detail", "payment"};
//nz.co.transparent.client.controller.insertMultipleRecord("client", "client_id", clientID, childTables);
} catch (ControllerException ce) {