in chill-java/src/main/java/com/twitter/chill/ResourcePool.java [33:46]
public T borrow() {
try {
T res = pool.poll();
if(null == res) {
return newInstance();
}
else {
return res;
}
}
catch(Exception x) {
throw new RuntimeException(x);
}
}