code: public static OS getOS() {
          String osname = SystemUtil.OS_NAME;
          String osarch = SystemUtil.OS_ARCH;
  
          if (osname.indexOf("Mac") != -1) {
              if (osarch.equals("x86")) return OS.MAC;
              else if (osarch.equals("x86_64")) return OS.MAC_64;
          } else if (osname.indexOf("Windows") != -1) {
              if (osarch.equals("x86")) return OS.WIN;
              else if (osarch.equals("x86_64")||osarch.equals("amd64")) return OS.WIN_64;
          } else if (osname.indexOf("Linux") != -1) {
              if (osarch.equals("i386")) return OS.LINUX;
              else if (osarch.equals("amd64")) return OS.LINUX_64;
          }
  
          return OS.OTHER;
      }
docs: Get information of OS environment.
  Detects OS name (e.g. Mac OS X) and architecture (e.g. x86_64).
  
  @return OSEnv enum object.