public PoolImpl createPool(Properties props) { String name = "GatewayPool-" + getGatewayPoolId(); PoolFactoryImpl pf = (PoolFactoryImpl)PoolManager.createFactory(); // @todo grid: switch this to use PoolImpl instead of BridgePoolImpl try { pf.init(props, false, true); } catch (IllegalArgumentException e) { if(e.getMessage().contains("Couldn't find any Endpoint")){ throw e; }else { this._logger.warning(LocalizedStrings.GatewayImpl_UnknownHost, e); } } PoolImpl result = (PoolImpl)pf.create(name); return result; }