class LdapURLSet {

  protected synchronized void populate(final List<LdapURL> ldapUrls)
  {
    // Copy activity state from any URLs currently in the set that match new entries
    for (LdapURL url : urls) {
      final LdapURL match = ldapUrls.stream().filter(u -> u.equals(url)).findFirst().orElse(null);
      if (match != null && !url.isActive()) {
        match.deactivate();
      }
    }
    urls.clear();
    urls.addAll(ldapUrls);
  }

  public  LdapURLSet(final ConnectionStrategy strategy, final String ldapUrls);

}