public function isTransitionAllowed($oldStatus, $newStatus)
    {
        $config = $this->statuses[$oldStatus];
        return isset($config['transitions'])
        && is_array($config['transitions'])
        && in_array($newStatus, $config['transitions']);
    }