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 .