added term glossaryType based retrieval of term categories; exception
handling