public boolean isCurrentOperatingSystem() { if ((this.name != null) && (this.name != OperatingSystem.getCurrentPlatform())) return false;

      if (this.version != null)
        try {
          Pattern pattern = Pattern.compile(this.version);
          Matcher matcher = pattern.matcher(System.getProperty("os.version"));
          if (!matcher.matches()) return false;
        }
        catch (Throwable localThrowable)
        {
        }
      return true;
    }