[server][DBAgent] Add a new virtual method: getOptionTermGenerator().