code: public void setGenericPoolConfig(GenericObjectPoolConfig cfg) throws Exception {
          if (this.genericObjectPool != null) {
              this.genericObjectPool.close();
          }
          if (cfg == null) {
              cfg = new GenericObjectPoolConfig();
          }
          this.genericObjectPool = new GenericObjectPool<IPhynixxManagedConnection<C>>(new MyPoolableObjectFactory<C>(this), cfg);
      }
docs: closes the current pool -if existing- and instanciates a new pool
  
  @param cfg
  @throws Exception