should we explicitly make this the phpcr manager registry? as here we are actually not sure if we get a phpcr session out or not.

and we should call the argument $registry instead of $session.