for ( final String attribute : attributes ) {
checkNotEmpty( "attribute", attribute );
if ( attribute.equals( "*" ) || attribute.equals( DiscussionView.DISCUSS ) ) {
for ( int i = 0; i < attrs.discussion().size(); i++ ) {
final DiscussionRecord record = attrs.discussion().get( i );
put( buildAttrName( DiscussionView.TIMESTAMP, i ), record.getTimestamp() );
put( buildAttrName( DiscussionView.AUTHOR, i ), record.getAuthor() );
put( buildAttrName( DiscussionView.NOTE, i ), record.getNote() );
}
}
if ( attribute.equals( "*" ) ) {
break;
}