if (groups == null || groups.length > 0) {
throw new ConfigurationException(
"discoveryManager must be initially configured with " +
"no groups");
}
DiscoveryLocatorManagement dlm =
(DiscoveryLocatorManagement) discoer;
if (dlm.getLocators().length > 0) {
throw new ConfigurationException(
"discoveryManager must be initially configured with " +
"no locators");
}
dgm.setGroups(lookupGroups);
dlm.setLocators(lookupLocators);
} catch (ClassCastException e) {
throw new ConfigurationException(null, e);
}
joiner = new JoinManager(proxy, lookupAttrs, myServiceID,
discoer, null, config);