Use a container form the controller given as context to a route

it closes #2009 and #1998