since this doesn't depend on any fields of the `Connection` instance, perhaps we might move it to `ConnectionUtils` and make it a static method?