props.addResponseInterceptors(responseInterceptor);
}
}
if (gsonBuilder == null) {
gsonBuilder = new GsonBuilder();
<BUG>}
gsonBuilder.registerTypeAdapter(new TypeToken<List<Shard>>() {
}.getType(), new ShardDeserializer())
.registerTypeAdapter(new TypeToken<List<Index>>() {
}.getType(), new IndexDeserializer())
.registerTypeAdapter(new TypeToken<Map<String, EnumSet<Permissions>>>() {
}.getType(),
new SecurityDeserializer())</BUG>
.registerTypeAdapter(Key.ComplexKey.class, new Key.ComplexKeyDeserializer());

props.addResponseInterceptors(responseInterceptor);
}
}
if (gsonBuilder == null) {
gsonBuilder = new GsonBuilder();
}
gsonBuilder.registerTypeAdapter(DeserializationTypes.SHARDS, new ShardDeserializer())
.registerTypeAdapter(DeserializationTypes.INDICES, new IndexDeserializer())
.registerTypeAdapter(DeserializationTypes.PERMISSIONS_MAP, new SecurityDeserializer())
.registerTypeAdapter(Key.ComplexKey.class, new Key.ComplexKeyDeserializer());
