private void generateResponses ( final Metadata m , final Element e ) { if ( m . getResponses ( ) == null || m . getResponses ( ) . length == 0 ) { return ; } final Element responsesElements = new Element ( "responses" , NS ) ; for ( final String response : m . getResponses ( ) ) { addNotNullElement ( responsesElements , "response" , response ) ; } e . addContent ( responsesElements ) ; }
Generation of responses tag .