public ResponseBody addResponse ( ) { Element response = addChild ( root , "response" , childNames , true ) ; //$NON-NLS-1$ try { return new ResponseBody ( response ) ; } catch ( MalformedElementException e ) { Assert . isTrue ( false , Policy . bind ( "assert.internalError" ) ) ; //$NON-NLS-1$ return null ; // Never reached. } }
Creates and adds a response element to this multistatus and returns an editor on it .