protected function resolveHookCommand(CommandHookInterface $command_hook)
    {
        $command = null;

        switch ($command_hook->getType()) {
            case 'raw':
                $command = $command_hook->getCommand();
                break;
            case 'engine':
                $command = $this->getEngineCommand($command_hook);
                break;
            case 'project':
                $command = $this->getProjectCommand($command_hook);
                break;
        }

        return isset($command) ? $command : false;
    }