code: public void updateLocale(String locale) throws SecurityException {
  	checkWriteAccess();
  	boolean hasAccess = ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_SETTING);
  	if (!hasAccess) throw new SecurityException("no access to update regional setting");
  
  	Element scope = _getRootElement("regional");
  	scope.setAttribute("locale", locale.trim());
      }
docs: update the locale
  
  @param locale
  @throws SecurityException