Sample Code for Object Pooling in Java