CalendarDeserializer calendarDeserializer = new CalendarDeserializer(localization);
deserializers.add(calendarDeserializer);
deserializer = new GsonDeserialization(provider, new DefaultJsonDeserializers(deserializers), request);
DefaultResourceClass resourceClass = new DefaultResourceClass(DogController.class);
woof = new DefaultResourceMethod(resourceClass, DogController.class.getDeclaredMethod("woof"));
bark = new DefaultResourceMethod(resourceClass, DogController.class.getDeclaredMethod("bark", Dog.class));
jump = new DefaultResourceMethod(resourceClass, DogController.class.getDeclaredMethod("jump", Dog.class,
Integer.class));
dropDead = new DefaultResourceMethod(resourceClass, DogController.class.getDeclaredMethod("dropDead",
Integer.class, Dog.class));
adopt = new DefaultResourceMethod(resourceClass, DogController.class.getDeclaredMethod("adopt",
List.class));
sell = new DefaultResourceMethod(resourceClass, DogController.class.getDeclaredMethod("sell",
List.class, String.class));
}