well if i move the code to where you suggest the PHPCR ODM test fails