Obtain permanent object id after inserting object
Merge branch 'bug-new-managedobject-obtain-permanent-id' into develop-with-bug-fixes