public function processPluginXML(Plugin $plugin, Errors &$errors, &$log = '', $xml = false)
    {
        if(!$xml)
            $xml = $this->loadXML($plugin->Path);

        $this->processConfig($plugin, $log, $xml);

        $this->processPermissions($plugin, $log, $xml);

        $this->processCMSNavItems($plugin, $log, $xml);

        $this->processElements($plugin, $log, $xml);

    }