private void insertPoliticians(final KieSession ksession, final List<ViewRiksdagenPolitician> list) {

		final Map<String, List<ViewRiksdagenVoteDataBallotPoliticianSummaryAnnual>> politicanBallotSummaryAnnualMap = dataViewer
				.getAll(ViewRiksdagenVoteDataBallotPoliticianSummaryAnnual.class).stream()
				.collect(Collectors.groupingBy(p -> p.getEmbeddedId().getIntressentId()));
		final Map<String, List<ViewRiksdagenVoteDataBallotPoliticianSummaryMonthly>> politicanBallotSummaryMontlyMap = dataViewer
				.getAll(ViewRiksdagenVoteDataBallotPoliticianSummaryMonthly.class).stream()
				.collect(Collectors.groupingBy(p -> p.getEmbeddedId().getIntressentId()));

		final Map<String, List<ViewRiksdagenVoteDataBallotPoliticianSummaryDaily>> politicanBallotSummaryDailyMap = dataViewer
				.getAll(ViewRiksdagenVoteDataBallotPoliticianSummaryDaily.class).stream()
				.collect(Collectors.groupingBy(p -> p.getEmbeddedId().getIntressentId()));

		final Map<String, List<ViewRiksdagenCommitteeBallotDecisionPoliticianSummary>> decisionMap = dataViewer
				.findListByProperty(ViewRiksdagenCommitteeBallotDecisionPoliticianSummary.class,
						new String[] { "2007/08", "FöU15" }, ViewRiksdagenCommitteeBallotDecisionPoliticianSummary_.rm,
						ViewRiksdagenCommitteeBallotDecisionPoliticianSummary_.committeeReport)
				.stream().collect(Collectors.groupingBy(p -> p.getEmbeddedId().getIntressentId()));

		for (final ViewRiksdagenPolitician politicianData : list) {
			if (politicianData != null) {

				List<ViewRiksdagenCommitteeBallotDecisionPoliticianSummary> ballots = decisionMap
						.get(politicianData.getPersonId());
				if (ballots == null) {
					ballots = new ArrayList<>();
				}

				insertPolitician(ksession, politicianData,
						politicanBallotSummaryDailyMap.get(politicianData.getPersonId()),
						politicanBallotSummaryMontlyMap.get(politicianData.getPersonId()),
						politicanBallotSummaryAnnualMap.get(politicianData.getPersonId()), ballots);
			}
		}
	}
private void insertPoliticians(final KieSession ksession, final List<ViewRiksdagenPolitician> list) {

		final Map<String, List<ViewRiksdagenVoteDataBallotPoliticianSummaryAnnual>> politicanBallotSummaryAnnualMap = dataViewer
				.getAll(ViewRiksdagenVoteDataBallotPoliticianSummaryAnnual.class).stream()
				.collect(Collectors.groupingBy(p -> p.getEmbeddedId().getIntressentId()));
		final Map<String, List<ViewRiksdagenVoteDataBallotPoliticianSummaryMonthly>> politicanBallotSummaryMontlyMap = dataViewer
				.getAll(ViewRiksdagenVoteDataBallotPoliticianSummaryMonthly.class).stream()
				.collect(Collectors.groupingBy(p -> p.getEmbeddedId().getIntressentId()));

		final Map<String, List<ViewRiksdagenVoteDataBallotPoliticianSummaryDaily>> politicanBallotSummaryDailyMap = dataViewer
				.getAll(ViewRiksdagenVoteDataBallotPoliticianSummaryDaily.class).stream()
				.collect(Collectors.groupingBy(p -> p.getEmbeddedId().getIntressentId()));

		final Map<String, List<ViewRiksdagenCommitteeBallotDecisionPoliticianSummary>> decisionMap = dataViewer
				.findListByProperty(ViewRiksdagenCommitteeBallotDecisionPoliticianSummary.class,
						new String[] { "2007/08", "FöU15" }, ViewRiksdagenCommitteeBallotDecisionPoliticianSummary_.rm,
						ViewRiksdagenCommitteeBallotDecisionPoliticianSummary_.committeeReport)
				.stream().collect(Collectors.groupingBy(p -> p.getEmbeddedId().getIntressentId()));

		for (final ViewRiksdagenPolitician politicianData : list) {
			if (politicianData != null) {

				List<ViewRiksdagenCommitteeBallotDecisionPoliticianSummary> ballots = decisionMap
						.get(politicianData.getPersonId());
				if (ballots == null) {
					ballots = new ArrayList<>();
				}

				insertPolitician(ksession, politicianData,
						politicanBallotSummaryDailyMap.get(politicianData.getPersonId()),
						politicanBallotSummaryMontlyMap.get(politicianData.getPersonId()),
						politicanBallotSummaryAnnualMap.get(politicianData.getPersonId()), ballots);
			}
		}
	}
private void insertPoliticians ( final KieSession ksession , final List < ViewRiksdagenPolitician > list ) { final Map < String , List < ViewRiksdagenVoteDataBallotPoliticianSummaryAnnual > > politicanBallotSummaryAnnualMap = dataViewer . getAll ( ViewRiksdagenVoteDataBallotPoliticianSummaryAnnual . class ) . stream ( ) . collect ( Collectors . groupingBy ( p -> p . getEmbeddedId ( ) . getIntressentId ( ) ) ) ; final Map < String , List < ViewRiksdagenVoteDataBallotPoliticianSummaryMonthly > > politicanBallotSummaryMontlyMap = dataViewer . getAll ( ViewRiksdagenVoteDataBallotPoliticianSummaryMonthly . class ) . stream ( ) . collect ( Collectors . groupingBy ( p -> p . getEmbeddedId ( ) . getIntressentId ( ) ) ) ; final Map < String , List < ViewRiksdagenVoteDataBallotPoliticianSummaryDaily > > politicanBallotSummaryDailyMap = dataViewer . getAll ( ViewRiksdagenVoteDataBallotPoliticianSummaryDaily . class ) . stream ( ) . collect ( Collectors . groupingBy ( p -> p . getEmbeddedId ( ) . getIntressentId ( ) ) ) ; final Map < String , List < ViewRiksdagenCommitteeBallotDecisionPoliticianSummary > > decisionMap = dataViewer . findListByProperty ( ViewRiksdagenCommitteeBallotDecisionPoliticianSummary . class , new String [ ] { "2007/08" , "FöU15"  , iewRiksdagenCommitteeBallotDecisionPoliticianSummary_. r m, ViewRiksdagenCommitteeBallotDecisionPoliticianSummary_ . committeeReport ) . stream ( ) . collect ( Collectors . groupingBy ( p -> p . getEmbeddedId ( ) . getIntressentId ( ) ) ) ; for ( final ViewRiksdagenPolitician politicianData : list ) { if ( politicianData != null ) { List < ViewRiksdagenCommitteeBallotDecisionPoliticianSummary > ballots = decisionMap . get ( politicianData . getPersonId ( ) ) ; if ( ballots == null ) { ballots = new ArrayList <> ( ) ; } insertPolitician ( ksession , politicianData , politicanBallotSummaryDailyMap . get ( politicianData . getPersonId ( ) ) , politicanBallotSummaryMontlyMap . get ( politicianData . getPersonId ( ) ) , politicanBallotSummaryAnnualMap . get ( politicianData . getPersonId ( ) ) , ballots ) ; } } }
Insert politicians.

@param ksession the ksession
@param list     the list
Insert politicians .