Configure form and entity based on route-match while dispatching the controller.