private function getPluginPriority($name, $index = 0)
    {
        $priority = 10;
        if (property_exists($this, "{$name}PluginPriority")) {
            $value    = $this->{$name . 'PluginPriority'};
            $priority = is_array($value) ? $value[ $index ] : $value;
        }

        return $priority;
    }