GsonBuilder gsonBuilder = new GsonBuilder();
gsonBuilder.setFieldNamingStrategy(fieldNamingStrategy);
gsonBuilder.registerTypeAdapter(Date.class, new DateTypeAdapter());
Excluder excluder = Excluder.DEFAULT;
Map<Type, InstanceCreator<?>> instanceCreators = Collections.emptyMap();
ConstructorConstructor constructorConstructor = new ConstructorConstructor(instanceCreators);
gsonBuilder.registerTypeAdapterFactory(new NullableReflectiveTypeAdapterFactory(constructorConstructor,
fieldNamingStrategy, excluder));