I wish there there was a better way to avoid the code duplication here. This is in particular frustrating as **RequestMappingHandlerMapping** changed a bit in **Spring 3.2** - e.g. adding the ContentNegotiationManager.

* http://static.springsource.org/spring/docs/3.2.x/javadoc-api/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMapping.html

* http://static.springsource.org/spring/docs/3.1.x/javadoc-api/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMapping.html

* http://static.springsource.org/spring/docs/3.1.3.RELEASE_to_3.2.0.RELEASE/changes/org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.html

@garyrussell Do you maybe see a better way here?