public function validate($xsd = null)
    {
        if (!$xsd) {
            $xsdPath = __DIR__ . '/../../../resources/xsd/';
            $xsd = $xsdPath . 'rampage/core/ModuleManifest.xsd';
        }

        try {
            $dom = new DOMDocument();
            $dom->loadXML($this->getXml()->asXML());

            $result = $dom->schemaValidate($xsd);
            unset($dom);
        } catch (\Exception $e) {
            return false;
        }

        return $result;
    }