Poolable poolable = ((GenericPool)Service.readObject("GenericPool")).getPoolable();
The above method returns an instance of Poolable that is ready to be used. Note that the Poolable object is already initialized.
Once the application has finished using the Poolable object, it releases it back to the pool, as follows:
getService("GenericPool").releasePoolable(poolable);
When you call releasePoolable, the Generic Pool resets the Poolable object automatically.