Fix for Bug #1223989
Revert "Fix for Bug #1223989"

This reverts commit 91beaf0a8f20aeedbd22aa8503e941952321680a.
Fix for Bug #1146390: onAcquire hook should have access to the internal connection.