support class for ConnectionRepository implementations

small helper class that's pretty handy for custom ConnectinoRepositories (was spring+hibernate in my case)