code: public static PoolConfig newPoolConfig(final AbstractLdapProperties l) {
          final PoolConfig pc = new PoolConfig();
          pc.setMinPoolSize(l.getMinPoolSize());
          pc.setMaxPoolSize(l.getMaxPoolSize());
          pc.setValidateOnCheckOut(l.isValidateOnCheckout());
          pc.setValidatePeriodically(l.isValidatePeriodically());
          pc.setValidatePeriod(newDuration(l.getValidatePeriod()));
          return pc;
      }
docs: New pool config pool config.
  
  @param l the ldap properties
  @return the pool config