Refactoring TermController  changed AliasesMap to TermsMap