static Collection<ClientIdentifier> getManageableClients(IMonitoringConsumer consumer) { return consumer .getChildNamesForNode("management", "clients") .orElse(Collections.emptyList()) .stream() .map(ClientIdentifier::valueOf) .collect(Collectors.toSet()); }
static boolean isManageableClient(IMonitoringConsumer consumer, ClientIdentifier to) { return consumer.getChildNamesForNode("management", "clients", to.getClientId()).isPresent(); }