protected function getFromNameAndNs($namespace, $name, $hash)
    {
        $nhex = str_replace(array('-','{','}'), '', $namespace);
        $nstr = '';

        for($i = 0; $i < strlen($nhex); $i+=2)
		{
			$nstr .= chr(hexdec($nhex[$i].$nhex[$i+1]));
		}

        return $hash($nstr . $name);
    }