Add support for controller as service.