mark SerializerRegistry as obsolete