moved connection impl
merged changes from 4941dcb8cc00
merged changes from  raven 1216
whereEntityIs + NPE checks on getentity