code: public void updateUpdate(String type, String location) throws SecurityException {
  	checkWriteAccess();
  
  	if (!(config instanceof ConfigServer)) {
  	    throw new SecurityException("can't change update setting from this context, access is denied");
  	}
  	Element update = _getRootElement("update");
  	update.setAttribute("type", type);
  	try {
  	    location = HTTPUtil.toURL(location, true).toString();
  	}
  	catch (Throwable e) {
  	    ExceptionUtil.rethrowIfNecessary(e);
  	}
  	update.setAttribute("location", location);
      }
docs: updates update settingd for Lucee
  
  @param type
  @param location
  @throws SecurityException