public void update(Collection collection) throws ObjectLockedException, ObjectExistsException {
try {
Session session = (Session) DatabaseUtil.getSingleton().getDaoSession();
ContentDao contentDao = ContentDao.createInstance();
contentDao.touchProperties(collection);
Node collectionNode = session.getNodeByUUID(collection.getId());
for (PropertyIterator pi = collectionNode.getProperties(); pi.hasNext(); ) {
Property property = pi.nextProperty();
//Do no remove JCR properties and the mandatory restrict children property.