//file = Repository.getDefault().getDefaultFileSystem().findResource(selFile.getCanonicalPath());
file = FileUtil.toFileObject(selFile);
dob = DataObject.find(file);
EditCookie cookie = dob.getCookie(EditCookie.class);
if (cookie != null) {
cookie.edit();
}
setLocalFile(selFile.getCanonicalPath());
} catch (IOException ex) {
Exceptions.printStackTrace(ex);
}