Why did you set the generic type to `Object` here? Can't you set it so `String` (because that's what you return with `next()`.