[server][OptionTermGenerator] Add a new class: OptionTermGenerator.