Yeah, the alternative of passing in the Configuration exploded into something quite complex looking. It all comes down to the need to lookup another PersistentClass in JavaTypeFromValueVisitor, so perhaps there's another way to do this?