private static void addGovernmentBodyAnnualSummaryToList ( final String name , final int year , final List < GovernmentBodyAnnualSummary > yearList , final Row row ) { if ( row . getLastCellNum ( ) >= EXPECTED_COLUMN_LENGTH ) { final GovernmentBodyAnnualSummary governmentBodyAnnualSummary = createGovernmentBodyAnnualSummaryFromRow ( year , row ) ; if ( name == null || name . equalsIgnoreCase ( governmentBodyAnnualSummary . getMinistry ( ) ) ) { yearList . add ( governmentBodyAnnualSummary ) ; } } }
Adds the government body annual summary to list .