code: private Element _getRootElement(String name) {
  	Element el = XMLConfigWebFactory.getChildByName(doc.getDocumentElement(), name);
  	if (el == null) {
  	    el = doc.createElement(name);
  	    doc.getDocumentElement().appendChild(el);
  	}
  	return el;
      }
docs: /*
  * updates the Memory Logger
  
  @param memoryLogger
  
  @throws SecurityException / public void updateMemoryLogger(String memoryLogger) throws
  SecurityException { boolean
  hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_DEBUGGING); if(!hasAccess) throw
  new SecurityException("no access to change debugging settings");
  
  Element debugging=_getRootElement("debugging");
  if(memoryLogger.trim().length()>0)debugging.setAttribute("memory-log",memoryLogger); }