removed unnecessary const_cast due to the addition of add(const ItemGroup *).
removed unnecessary const_cast due to the addition of add(const ItemGroup *).