code: def CheckRegistryKey(javaKey):
  		
  		from _winreg import ConnectRegistry, HKEY_LOCAL_MACHINE, OpenKey, QueryValueEx
  
  		path = None
  		try:
  			aReg = ConnectRegistry(None, HKEY_LOCAL_MACHINE)
  			rk = OpenKey(aReg, javaKey)
  			for i in range(1024):
  				currentVersion = QueryValueEx(rk, "CurrentVersion")
  				if currentVersion != None:
  					key = OpenKey(rk, currentVersion[0])
  					if key != None:
  						path = QueryValueEx(key, "JavaHome")
  						return path[0]
  		except Exception, err:
  			# TODO: Add Warning/Error messages in Logger.
  			WriteUcsWarning("Not able to access registry.")
  			return None
docs: Method checks for the java in the registry entries.