// Initialize the existing network groups.
for (String networkGroupName : rootConfiguration
.listNetworkGroups())
{
NetworkGroupCfg configuration =
rootConfiguration.getNetworkGroup(networkGroupName);
configuration.addChangeListener(this);
List<Message> unacceptableReasons = new ArrayList<Message>();
if (!NetworkGroup.isConfigurationAcceptable(configuration,
unacceptableReasons))
{
Message message =
ERR_CONFIG_NETWORK_GROUP_CONFIG_NOT_ACCEPTABLE.get(String
.valueOf(configuration.dn()), StaticUtils.listToString(
unacceptableReasons, ". "));
throw new InitializationException(message);
}
if (configuration.isEnabled())
{
NetworkGroup networkGroup =
NetworkGroup.createUserNetworkGroup(configuration);
networkGroups.put(configuration.dn(), networkGroup);
}
}
}