I removed the readonly stuff but now I still get an error here if I remove the if in the following case: I try to create a document that has references to other documents. This results in the original document with the protected property to be inserted first and then updated again. But in executeUpdate, the protected property still has the value 'null' and so Jackalope complains about removing a protected property. So no change of inserting ... Will create a test case ...