class ProxyKick {

    public boolean kick(String target, String reason) {
        return playerRepository.getPlayerProxy(target)
                .map(proxyName -> {
                    messagingService.send(new KickProxyCommand(target, reason), proxyName);
                    return Boolean.TRUE;
                }).orElse(Boolean.FALSE);
    }

}