public static PoolConnection getConnection() {
		synchronized (pool) {
			for (PoolConnection pcon : pool) {
				if (!pcon.isInUse()) {
					pcon.setInUse();
					return pcon;
				}
			}

			PoolConnection pcon = new PoolConnection();
			pool.add(pcon);
			return pcon;
		}
	}