//---------------------------------------------------------------------------------------------------------
// Update a document
//---------------------------------------------------------------------------------------------------------
document.setName("anotherName");
ocm.update(document);
ocm.save();
// ---------------------------------------------------------------------------------------------------------
// Retrieve the updated descendant object
//---------------------------------------------------------------------------------------------------------
document = (Document) ocm.getObject( "/document1");