private void generateComments ( final Metadata m , final Element e ) { final Element commentsElements = new Element ( "comments" , NS ) ; for ( final String comment : m . getComments ( ) ) { addNotNullElement ( commentsElements , "comment" , comment ) ; } if ( ! commentsElements . getChildren ( ) . isEmpty ( ) ) { e . addContent ( commentsElements ) ; } }
Generation of comments tag .