.getFile(Path.fromPortableString(prefereceFileId));
ByteArrayOutputStream preferenceBytes = new ByteArrayOutputStream();
try {
preferences.save(preferenceBytes, "");
} catch (IOException e) {
// will not fail, writing to memory
CasEditorPlugin.log(e);
}