// if connection is not wrapped by a proxy yet, create one now
if (!useProxies) {
ClassLoader loader = _connection.getClass().getClassLoader();
Class < ? > [] interfaces = new Class < ? > [] {Connection.class};
InvocationHandler handler = new ConnectionProxy(_connection, getClass().getName());
_connection = (Connection) Proxy.newProxyInstance(loader, interfaces, handler);
}
}