$new_round = 1;
    if (!empty($all_meeting_agenda_list)) {
        // 이미 등록된 미팅 아젠다가 있는 경우.
        $recent_meeting_agenda_obj = $all_meeting_agenda_list[0];
        $recent_meeting_agenda_obj_json_str = json_encode($recent_meeting_agenda_obj);
        array_push($debug_stack_array, $recent_meeting_agenda_obj_json_str);
        $new_round = strval(intval($recent_meeting_agenda_obj->__round) + 1);
        array_push($debug_stack_array, "new_round : {$new_round}");
    }
    $new_start_datetime = new DateTime($START_DATE);
    $new_startdttm = $new_start_datetime->format("YmdHis");
    array_push($debug_stack_array, "new_startdttm : {$new_startdttm}");
    $query_output = $wdj_mysql_interface->insertMeetingAgenda($new_round, $THEME, $new_startdttm, $MEETING_MEMBERSHIP_ID);
    array_push($result->query_output_arr, $query_output);
    // 새로 만든 미팅 정보를 가져옵니다.
    $new_meeting_agenda_obj = $wdj_mysql_interface->getMeetingAgendaByRound($new_round, $new_startdttm, $MEETING_MEMBERSHIP_ID);
    $new_meeting_agenda_obj_json_str = json_encode($new_meeting_agenda_obj);
    array_push($result->query_output_arr, $new_meeting_agenda_obj_json_str);
    // 사용자가 지정한 meeting template을 timeline json str으로 저장합니다.
    $query_output = $wdj_mysql_interface->copyTimelineFromTemplate($new_meeting_agenda_obj[0]->__meeting_id, $MEETING_TEMPLATE_ID);
    array_push($result->query_output_arr, $query_output);
} else {
    if ($IS_UPDATE_MEETING_HEADER && $MEETING_ID > 0 && !empty($THEME) && !empty($START_DATE)) {
        $new_start_datetime = new DateTime($START_DATE);
        $new_startdttm = $new_start_datetime->format("YmdHis");
        // 있던 미팅 정보를 바꿉니다.
        $query_output = $wdj_mysql_interface->updateMeetingAgenda($MEETING_ID, $ROUND, $THEME, $new_startdttm, $MEETING_MEMBERSHIP_ID);
        array_push($result->query_output_arr, $query_output);
    }
}
terminate($wdj_mysql_interface, $result, $debug_stack_array, $debug);