private Map<String, Object> toMap(final ConferenceDetailRecord cdr) { final Map<String, Object> map = new HashMap<String, Object>(); map.put("sid", DaoUtils.writeSid(cdr.getSid())); map.put("date_created", DaoUtils.writeDateTime(cdr.getDateCreated())); map.put("date_updated", DaoUtils.writeDateTime(cdr.getDateUpdated())); map.put("account_sid", DaoUtils.writeSid(cdr.getAccountSid())); map.put("status", cdr.getStatus()); map.put("friendly_name", cdr.getFriendlyName()); map.put("api_version", cdr.getApiVersion()); map.put("uri", DaoUtils.writeUri(cdr.getUri())); map.put("master_ms_id", cdr.getMasterMsId()); map.put("master_conference_endpoint_id", cdr.getMasterConferenceEndpointId()); map.put("master_ivr_endpoint_id", cdr.getMasterIVREndpointId()); map.put("master_ivr_endpoint_session_id", cdr.getMasterIVREndpointSessionId()); map.put("master_bridge_endpoint_id", cdr.getMasterBridgeEndpointId()); map.put("master_bridge_endpoint_session_id", cdr.getMasterBridgeEndpointSessionId()); map.put("master_present", cdr.isMasterPresent()); map.put("master_bridge_conn_id", cdr.getMasterBridgeConnectionIdentifier()); map.put("master_ivr_conn_id", cdr.getMasterIVRConnectionIdentifier()); map.put("moderator_present", cdr.isModeratorPresent()); return map; } }