citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractChartDataManagerImpl.java
protected final String getPartyName(final String party) {
		final DataContainer<ViewRiksdagenParty, String> dataContainer = applicationManager
				.getDataContainer(ViewRiksdagenParty.class);

		final Optional<ViewRiksdagenParty> matchingObjects =dataContainer.getAll().stream().
			    filter((final ViewRiksdagenParty p) -> p.getPartyId().equalsIgnoreCase(party)).
			    findFirst();

		if (matchingObjects.isPresent()) {
			return matchingObjects.get().getPartyName();

		} else {
			return party;
		}
	}
protected final String getPartyName(final String party) {
		final DataContainer<ViewRiksdagenParty, String> dataContainer = applicationManager
				.getDataContainer(ViewRiksdagenParty.class);

		final Optional<ViewRiksdagenParty> matchingObjects =dataContainer.getAll().stream().
			    filter((final ViewRiksdagenParty p) -> p.getPartyId().equalsIgnoreCase(party)).
			    findFirst();

		if (matchingObjects.isPresent()) {
			return matchingObjects.get().getPartyName();

		} else {
			return party;
		}
	}
protected final String getPartyName ( final String party ) { final DataContainer < ViewRiksdagenParty , String > dataContainer = applicationManager . getDataContainer ( ViewRiksdagenParty . class ) ; final Optional < ViewRiksdagenParty > matchingObjects = dataContainer . getAll ( ) . stream ( ) . filter ( ( final ViewRiksdagenParty p ) -> p . getPartyId ( ) . equalsIgnoreCase ( party ) ) . findFirst ( ) ; if ( matchingObjects . isPresent ( ) ) { return matchingObjects . get ( ) . getPartyName ( ) ; } else { return party ; } }
Gets the party name.

@param party
the party
@return the party name
Gets the party name .