public function getTransition($name)
{
if (!isset($this->transitions[$name])) {
throw new Exception\TransitionException(sprintf('Unable to find a transition called "%s" on object "%s" with graph "%s".', $name, get_class($this->getObject()), $this->getGraph()));
}
return $this->transitions[$name];
}