Added method to get the connection manager