private static String setProperty(final String name, final String value) {
    final PrivilegedAction<String> action;
    if (value != null)
      action = new PrivilegedAction<String>() {

        public String run() {
          return System.setProperty(name, value);
        }
      };
    else
      action = new PrivilegedAction<String>() {

        public String run() {
          return System.clearProperty(name);
        }
      };
    return AccessController.doPrivileged(action);
  }
Set property to given value.
<p>
Specifying a null value will cause the property to be cleared

@param name
@param value
@return previous value
lib/src/main/java/com/github/kevinsawicki/http/HttpRequest.java