protected ObjectDetail makeObjectDetail ( String type , String value ) { ObjectDetail detail = new ObjectDetail ( ) ; if ( type != null ) detail . setType ( type ) ; if ( value != null ) detail . setValue ( value . getBytes ( ) ) ; return detail ; }
Helper method to create an ObjectDetail from a pair of Strings .