if ( classCreateLdapConnectionPoolRule != null
&& classCreateLdapConnectionPoolRule.getLdapServer() != ldapServer )
{
LOG.trace( "Creating connection pool to new ldap server" );
LdapConnectionPool oldLdapConnectionPool = ldapConnectionPool;
LdapConnectionTemplate oldLdapConnectionTemplate = ldapConnectionTemplate;
ldapConnectionPool = classCreateLdapConnectionPoolRule
.createLdapConnectionPool( ldapServer );
ldapConnectionTemplate = new LdapConnectionTemplate( ldapConnectionPool );