SecurityManager sm = Runtime.securityManager;
SecurityManager sm = SecurityManager.current;
  public static String setProperty(String key, String value)  {    SecurityManager sm = Runtime.securityManager; // Be thread-safe.    if (sm != null)      sm.checkPermission(new PropertyPermission(key, "write"));    return (String) properties.setProperty(key, value);    }