public function getVersion()
    {
        $process = $this->getProcess();
        $processCommand = trim($this->findComposer() . ' --version');
        $process->setCommandLine($processCommand);
        $this->log->info('Running Composer command', ['command' => $processCommand]);
        $process->run();

        if ($process->isSuccessful() == false) {
            $composerError = remove_ansi($process->getErrorOutput());
            $this->log->error('Composer version process failure', ['composer' => $composerError]);
            throw new ComposerException('There was an error retrieving the Composer version');
        }

        return $process->getOutput();
    }