class Oven extends AbstractOven {

  public Cake bake(Recipe recipe) {
    this.subtypeResolver = new StdSubtypeResolver();

    registerSubtypes(recipe);

    objectMapper = new ObjectMapper();
    objectMapper.setSubtypeResolver(subtypeResolver);

    Cake cake = _bake(recipe, createCake());
    return cake;
  }

}