public Object add ( String key , Object value ) { if ( ! this . containsKey ( key ) ) { this . put ( key , value ) ; return null ; } return this . get ( key ) ; }
This method safely add new options . If the key already exists it does not overwrite the current value . You can use put for overwritten the value .