Use const_iterator in getWrapped method