Remove ManagedConnection from the code