class PartyService {

    public boolean partyChat(String member, String text) {
        return partyRepository.getPartyOwner(member)
                .map(owner -> {
                    playerMessaging.distribute(partyRepository.getPartyMembers(owner),
                            s -> new PartyChat(s, text, member)
                    );
                    return true;
                }).orElse(Boolean.FALSE);
    }

}