code: public static OperatingSystemType getOs() {
          OperatingSystemType os = OperatingSystemType.UNKNOWN;
  
          if (System.getProperty("os.name").toLowerCase().contains("windows")) {
              if (System.getenv("ProgramFiles(x86)") != null) {
                  // win 64Bit
                  os = OperatingSystemType.WIN64;
              } else if (System.getenv("ProgramFiles") != null) {
                  // win 32Bit
                  os = OperatingSystemType.WIN32;
              }
  
          } else if (SystemInfo.isLinux()) {
              os = OperatingSystemType.LINUX;
          } else if (System.getProperty("os.name").toLowerCase().contains("freebsd")) {
              os = OperatingSystemType.LINUX;
  
          } else if (SystemInfo.isMacOSX()) {
              os = OperatingSystemType.MAC;
          }
          return os;
      }
docs: Detect and return the currently used operating system.
  
  @return The enum for supported Operating Systems.