SaveAsDialog saveas = new SaveAsDialog(control.getShell());
if (saveas.open() == SaveAsDialog.OK) {
IPath filePath = saveas.getResult();
String fullPath = FILE_PREFIX
+ Platform.getLocation().append(filePath).toOSString();
XmlPersistentPathExpression persist = new XmlPersistentPathExpression();
try {
persist.save(new URI(fullPath), list);
} catch (IOException e) {
System.err.println("I/O Exception.");
e.printStackTrace();
} catch (URISyntaxException e) {
System.err.println("Malformed URI! Check the filename!");