builder.setDateFormat(DateUtils.TIMESTAMP_FORMAT);
<BUG>builder.registerTypeAdapter(IdRef.class, new IdRefJsonSerializerDeserializer(r));
builder.registerTypeAdapter(LazyJson.class, new LazyJsonDeserializer());</BUG>
builder.registerTypeAdapterFactory(new LazyJsonTypeAdapterFactory());
<BUG>return builder.create();
</BUG>
}
public static Object from(Repository r, String json, Type type) {
JsonElement jsonElement = new JsonParser().parse(json);
<BUG>Gson gson = buildGson(r);</BUG>
return gson.fromJson(jsonElement, type);
}
public static String to(Object o) {
<BUG>Gson gson = buildGson(null);</BUG>
if (o == null) {

builder.setDateFormat(DateUtils.TIMESTAMP_FORMAT);
builder.registerTypeAdapter(IdRef.class, new IdRefJsonSerializerDeserializer());
builder.registerTypeAdapter(LazyJson.class, new LazyJsonDeserializer());
builder.registerTypeAdapterFactory(new LazyJsonTypeAdapterFactory());
gson = builder.create();
}
public static Object from(Repository r, String json, Type type) {
JsonElement jsonElement = new JsonParser().parse(json);
return gson.fromJson(jsonElement, type);
}
public static String to(Object o) {
if (o == null) {
