public function getProcess($name)
    {
        if (!isset($this->processes[$name])) {
            throw new WorkflowException(sprintf('Unknown process "%s".', $name));
        }

        return $this->processes[$name];
    }