protected function determinePriority($state)
    {
        $priority = 0;

        if (array_key_exists($state, $this->stateToPriorityMap)) {
            $priority = $this->stateToPriorityMap[$state];
        }

        return $priority;
    }