correct ..
the only thing we could do as i noted is to add a duck typing check into addObject() or calling a "configureSerializer()" or something that would be implemented via inheritance, but imho that would also not be great as it would limit other possibilities for extending. so another possibility would be to instead of passing in a list of groups, one would inject a callable that return a properly configured serializer instance whenever its needed.