public function forHost($hostId) { // our embedded action does all the work $action = $this->action; $action($this->def, $hostId); }