Adds or replaces the system property. If the system property already exists with a different value on
{@link #restore()} the system property will be set back to it's previous value.

@param name  the name of the property
@param value the value to set
495541
@SuppressWarnings("WeakerAccess")
    void addOrReplaceProperty(final String name, final Object value) {
        final String currentValue = SecurityActions.setPropertyPrivileged(name, value.toString());
        if (currentValue != null) {
            propertiesToReset.put(name, currentValue);
        } else {
            propertiesToClear.add(name);
        }
    }
412154
public void addParam(String name, String value) {
        getParams().add(new BasicNameValuePair(name, value));
    }
1220372
public void add(String name, Object value) {
		if (value != null) {
			this.content.put(name, value);
		}
	}
291119
static void setSystemProperty(final String name, final String value)
   {
      AccessController.doPrivileged(new PrivilegedAction<Object>() 
      {
         public Object run()
         {
            System.setProperty(name, value);
            return null;
         }
      });
   }
154679
public App addSetting(String name, Object value) {
		if (!StringUtils.isBlank(name) && value != null) {
			getSettings().put(name, value);
			for (AppSettingAddedListener listener : ADD_SETTING_LISTENERS) {
				listener.onSettingAdded(this, name, value);
				logger.debug("Executed {}.onSettingAdded().", listener.getClass().getName());
			}
		}
		return this;
	}
431690
public void setValue (String name, boolean value)
    {
        Boolean oldValue = null;
        if (_prefs.get(name, null) != null || _props.getProperty(name) != null) {
            oldValue = Boolean.valueOf(_prefs.getBoolean(name, super.getValue(name, false)));
        }

        _prefs.putBoolean(name, value);
        _propsup.firePropertyChange(name, oldValue, Boolean.valueOf(value));
    }
521821
public void addProperty(String propertyName, Object value)
    {
        if (propertyName != null)
        {
            propertyNames.add(propertyName);
            if (value == null)
            {
                properties.remove(propertyName);
            }
            else
            {
                properties.put(propertyName, value);
            }
        }
    }
108110
public void setValue (String name, float value)
    {
        Float oldValue = null;
        if (_prefs.get(name, null) != null || _props.getProperty(name) != null) {
            oldValue = Float.valueOf(_prefs.getFloat(name, super.getValue(name, 0f)));
        }

        _prefs.putFloat(name, value);
        _propsup.firePropertyChange(name, oldValue, Float.valueOf(value));
    }
270857
public Processor setProperty(final String name, final String value) {
        args.put(name, value);
        return this;
    }
443770
public void setIfUnset(String name, String value) {
        if (get(name) == null) {
            set(name, value);
        }
    }
287098
public void set(String name, String value) {
        getOverlay().setProperty(name, value);
        getProps().setProperty(name, value);
    }
912699
public function setSystemProperty($name, $type, $value)
    {

        // initialize the system property to set
        $sytemPropertyToSet = new SystemPropertyNode($name, $type, new NodeValue($value));

        // query whether a system property with this name has already been set
        foreach ($this->systemProperties as $key => $systemProperty) {
            if ($systemProperty->getName() === $systemProperty->getName()) {
                // override the system property
                $this->systemProperties[$key] = $sytemPropertyToSet;
                return;
            }
        }

        // append the system property
        $this->systemProperties[] = $sytemPropertyToSet;
    }
169532
public void addToEnvironment(String name, Object value) {
        this.environment.set(name, value);
        this.environmentEntries.put(name, value);
    }
1178570
public void addProperty(String name, String value) {
        if (name == null || name.trim().length() == 0) {
            throw new IllegalArgumentException("A property name must be specified.");
        }

        if (value == null || value.trim().length() == 0) {
            throw new IllegalArgumentException("A property value must be specified.");
        }

        properties.put(name, value);
    }
1180593
public void setValue(String name, String value) {
    	Properties properties = loadProperties();
    	try (
    	    	OutputStream output = new FileOutputStream(file);
        	) {
    	    	properties.setProperty(name, value);
    	    	properties.store(output, "");
    	    	output.close();

        	} catch(IOException e) {
        		logger.warn(String.format("Could not save the keyvalue store, reason:%s", e.getMessage()));
        	}
    }
652132
public synchronized void addProperty(Object source, String name, Object value, boolean beforeUpdate) {
        if (beforeUpdate == false && isLog4JProperty(name)) {
            overrideProps.put(name, value);
            reConfigureAsynchronously();
        }
    }
929249
public void setValue (String name, long value)
    {
        Long oldValue = null;
        if (_prefs.get(name, null) != null || _props.getProperty(name) != null) {
            oldValue = Long.valueOf(_prefs.getLong(name, super.getValue(name, 0L)));
        }

        _prefs.putLong(name, value);
        _propsup.firePropertyChange(name, oldValue, Long.valueOf(value));
    }