title: arbitrary return types in spring mvc
body: <p>ExceptionHandler can return ModelAndView, Model, Map etc. Is it possible to return an object of my own type and register some transformer that can convert my type to one of types understood by Spring? For example:</p>
  
  <pre><code>@ExceptionHandler
  public MyType handle(Exception e) {
    ...
  }
  
  @SomeTransformer
  public Map convert(MyType myObject) {
     ...
  }
  </code></pre>