code: public synchronized void setProperty(String name, Object value) {
          if (!(value instanceof Serializable)) {
              throw new IllegalArgumentException("Value must be serializable");
          }
          properties.put(name, value);
      }
docs: Sets a property with an Object as the value. The value must be Serializable
  or an IllegalArgumentException will be thrown.
  
  @param name the name of the property.
  @param value the value of the property.