Add and use Controller::getType() (untested)