public Obj buildObject ( Object ... members ) { Obj o = newObject ( ) ; for ( int i = 0 ; i < members . length ; i += 2 ) { o . put ( ( String ) members [ i ] , members [ i + 1 ] ) ; } return o ; }
members in the form key val key val etc .