added a createTermName method to compile without warnings for both 2.10 and 2.11