public final class GsonMessageBodyReaderWriter implements MessageBodyWriter<Object>, MessageBodyReader<Object> {
private Gson gson;
private Gson getGson() {
if (gson == null) {
FieldNamingStrategy fieldNamingStrategy = new GsonFieldNamingStrategy();
GsonBuilder gsonBuilder = new GsonBuilder();
gsonBuilder.setFieldNamingStrategy(fieldNamingStrategy);
gsonBuilder.registerTypeAdapter(Date.class, new DateTypeAdapter());