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