public boolean applies () {
        if (os == null)
            return true;
        if (os.name != null && os.name != OS.getCurrentPlatform())
            return false;
        if (os.version != null) {
            try {
                if (!Pattern.compile(os.version).matcher(OS.VERSION).matches()) {
                    return false;
                }
            } catch (Throwable e) {
            }
        }
        return true;
    }