static String getDefaultLibPath(final typeOS os) {
        if (os.equals(typeOS.WINDOWS)) {

            try {
                String value = WinRegistry.readString(WinRegistry.HKEY_LOCAL_MACHINE, "SOFTWARE\\Open-Transactions", "Path");
                if (null == value) {
                    return "";
                }
                Logger.getLogger(Tools.class.getName()).log(Level.INFO, "Found OT path in registry:{0}", value);

                return value;

            } catch (IllegalArgumentException ex) {
                Logger.getLogger(Tools.class.getName()).log(Level.SEVERE, null, ex);
            } catch (IllegalAccessException ex) {
                Logger.getLogger(Tools.class.getName()).log(Level.SEVERE, null, ex);
            } catch (InvocationTargetException ex) {
                Logger.getLogger(Tools.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        return "";
    }