removed getConnection method from Connection interface