public void addItems ( String values ) throws Exception { for ( String line : values . split ( "[\\r\\n]" ) ) { String [ ] pcs = line . split ( "\\=" , 2 ) ; if ( pcs . length == 2 ) { setItem ( pcs [ 0 ] , pcs [ 1 ] ) ; } } }
Adds context items from a serialized string .