private static void addCommiteeSummary ( final StringBuilder stringBuilder , final Entry < String , List < ProposalCommitteeeSummary > > entry , final Optional < ViewRiksdagenCommittee > vewRiksdagenCommittee ) { if ( vewRiksdagenCommittee . isPresent ( ) ) { final Map < String , List < ProposalCommitteeeSummary > > docTypeMap = entry . getValue ( ) . stream ( ) . collect ( Collectors . groupingBy ( ProposalCommitteeeSummary :: getDocType ) ) ; stringBuilder . append ( ' ' ) . append ( vewRiksdagenCommittee . get ( ) . getEmbeddedId ( ) . getDetail ( ) ) ; for ( final Entry < String , List < ProposalCommitteeeSummary > > docEntry : docTypeMap . entrySet ( ) ) { if ( docEntry . getKey ( ) . length ( ) > 0 && entry . getKey ( ) . length ( ) > 0 ) { addEntry ( stringBuilder , entry , docEntry ) ; } } } }
Adds the commitee summary .