code: public static OS determineOS() {
  		if(currentOs == null) {
  			String osString = System.getProperty("os.name").trim().toLowerCase();
  			if(osString.startsWith("windows")) {
  				currentOs = OS.WIN32;
  			} else if(osString.startsWith("mac os x")) {
  				currentOs = OS.MACOSX;
  			} else if(osString.startsWith("mac os")) {
  				currentOs = OS.MACOSCLASSIC;
  			} else if(osString.startsWith("risc os")) {
  				currentOs = OS.RISCOS;
  			} else if( 
  					  (osString.indexOf("linux")>-1)
  				   || (osString.indexOf("debian")>-1)
  				   || (osString.indexOf("redhat")>-1)
  				   || (osString.indexOf("lindows")>-1) ) {
  				currentOs = OS.LINUX;
  			} else if( 
  					  (osString.indexOf("freebsd")>-1)
  				   || (osString.indexOf("openbsd")>-1)
  				   || (osString.indexOf("netbsd")>-1)
  				   || (osString.indexOf("irix")>-1)
  				   || (osString.indexOf("solaris")>-1)
  				   || (osString.indexOf("sunos")>-1)
  				   || (osString.indexOf("hp/ux")>-1)
  				   || (osString.indexOf("risc ix")>-1)
  				   || (osString.indexOf("dg/ux")>-1) ) {
  				currentOs = OS.BSD;
  			} else if(osString.indexOf("beos")>-1) {
  				currentOs = OS.BEOS;
  			} else {
  				currentOs = OS.UNKNOWN;
  			}
  		}
  		return currentOs;
  	}
docs: Determines the current host platform.
  
  @return Current host platform.