private function handler($type) { return call_user_func($this->resolver, $this->preferences[$type]); }