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