code: public void writeStringValue(HKey hk, String key, String valueName, String value) throws RegistryException {
  		try {
  			ReflectedMethods.writeStringValue(hk.root(), hk.hex(), key, valueName, value);
  		} catch (Exception e) {
  			throw new RegistryException("Cannot write " + valueName + " value " + value + " in key " + key, e);
  		}
  	}
docs: Write a value in a given key/value name
  
  @param hk the HKEY to be used
  @param key the key to be written
  @param valueName the value name
  @param value the value
  @throws RegistryException when something is not right