syncDaemon.executePeriodically(2000, new Sync(this, syncPeriod), false);
syncDaemon.executePeriodically(1000, new Sync(this, syncPeriod), false);
	public BrokerPool(String id, int minBrokers, int maxBrokers, Configuration config)		throws EXistException {		instanceId = id;		min = minBrokers;		max = maxBrokers;		Integer minInt = (Integer) config.getProperty("db-connection.pool.min");		Integer maxInt = (Integer) config.getProperty("db-connection.pool.max");		Long syncInt = (Long) config.getProperty("db-connection.pool.sync-period");		if (minInt != null)			min = minInt.intValue();		if (maxInt != null)			max = maxInt.intValue();		long syncPeriod = 120000;		if (syncInt != null)			syncPeriod = syncInt.longValue();		LOG.debug("min = " + min + "; max = " + max + "; sync = " + syncPeriod);		syncDaemon = new SyncDaemon();		if (syncPeriod > 0)			syncDaemon.executePeriodically(2000, new Sync(this, syncPeriod), false);		conf = config;		xqueryCache = new XQueryPool();		collectionsCache = new CollectionCache(COLLECTION_BUFFER_SIZE);		xmlReaderPool = new XMLReaderPool(new XMLReaderObjectFactory(this), 5, 0);		initialize();	}