protected static Connection memorize ( final Connection target , final ConnectionHandle connectionHandle ) { return ( Connection ) Proxy . newProxyInstance ( ConnectionProxy . class . getClassLoader ( ) , new Class [ ] { ConnectionProxy . class } , new MemorizeTransactionProxy ( target , connectionHandle ) ) ; }
Wrap connection with a proxy .