(WinregModule)client.getModule("_winreg");
Object hkey = winreg.openKey(WinregModule.HKEY_LOCAL_MACHINE,
"Software\\Microsoft\\Windows NT\\CurrentVersion");
try {
String prodname =
(String)winreg.queryValue(hkey, "ProductName");
if (prodname.indexOf("Server") != -1)
isServer = true;
} finally {
winreg.closeKey(hkey);
}