replaced 'const_cast' with the use of cosnt acceptable version of ItemTable::add().