CacheSerializer.convert constructs a CacheSerializer class which, being
created as return value, does not have a well-defined class name, but
rather an anonymous class name.
This can break some cache implementations that try to parse the
serializer and expect a well-defined class name.
Specifically this issue has been observed in an implementation of
chronicle-map cache. More information can be found in the relevant issue
ticket.
Bug: Issue 13410
Change-Id: I15cdfb4bcb0d3f2bb92bacf5d9ce9a5e270f5680