protected function getRoute($id, $subject, $type)
    {
        if (!is_null($this->routes) &&
            array_key_exists($subject, $this->routes) &&
            array_key_exists($type, $this->routes[$subject])
        ) {
            return str_replace('[id]', $id, $this->routes[$subject][$type]);
        }

        return '';
    }