protected function loadDeployTask($type, $build_path, array $configurations = [])
    {
        $definitions = $this->deployDefinitions();

        $classname = isset($definitions[$type]) && class_exists($definitions[$type])
                ? $definitions[$type]
                : 'Droath\ProjectX\Deploy\NullDeploy';

        return (new $classname($build_path, $configurations))
            ->setInput($this->input())
            ->setOutput($this->output())
            ->setBuilder($this->getBuilder())
            ->setContainer($this->getContainer());
    }