Update ResourcePool.java