build outboundevent . there are two valid configurations : when builder #comment is set , all other parameters are optional . if builder #data string is set , event will be serialized after comment . when builder #comment is not set , builder #data string have tobe set , all other parameters are optional . concode_field_sep String data concode_elem_sep String name concode_elem_sep String comment concode_elem_sep String id concode_field_sep String getName concode_elem_sep Builder data concode_elem_sep Builder name concode_elem_sep Builder comment concode_elem_sep String getId concode_elem_sep String getComment concode_elem_sep Builder id concode_elem_sep String getData
OutboundEvent function ( ) { if ( comment == null ) { if ( data == null ) { throw new IllegalStateException ( ) ; } } return new OutboundEvent ( name , id , data , comment ) ; }