Rewrite controllerresolver