This logic looks the same in both serializer and deserializer builders... I'd extract this for a 
component or create an abstract gson builder, or something in this way. What do you think?