byte[] domain = UUIDGenerator.randomUUID(false);
for (ManagedChannel channel : channels) {
channel.getMembershipService().setDomain(domain);
DomainFilterInterceptor filter = new DomainFilterInterceptor();
filter.setDomain(domain);
channel.addInterceptor(filter);
}
}