@Override
        public void destroyObject( PooledObject<SMPPSession> pooledObject ) throws Exception
        {
            final SMPPSession session = pooledObject.getObject();
            Log.debug( "Destroying a pooled session with ID '{}'.", session.getSessionId() );
            session.unbindAndClose();
        }
A factory of SMPPSession instances that are used in an object pool.

@author Guus der Kinderen, guus.der.kinderen@gmail.com
xmppserver/src/main/java/org/jivesoftware/util/SmsService.java