conControl.setVoidCallable(1);
final TransactionTemplate tt = new TransactionTemplate();
tt.setPropagationBehavior(TransactionDefinition.PROPAGATION_NESTED);
dialect.beginTransaction(tx, tt);
dialectControl.setReturnValue(null, 1);
ConnectionHandle conHandle = new SimpleConnectionHandle(con);
dialect.getJdbcConnection(pm, false);
dialectControl.setReturnValue(conHandle, 1);
dialect.releaseJdbcConnection(conHandle, pm);
dialectControl.setVoidCallable(1);
dialect.cleanupTransaction(null);