XStreamUtils.writeUtf8ToFile(this, xStream, file);
}
private static XStream createXStreamForFile(String name) {
XStream xStream = new XStream(new DomDriver());
// The last registered alias wins when resolving from class to name
// We register both aliases, but the one that should be used for writing as the last
if (name.equals(DesignDirectory.DESIGN_DEFINITION_FILE)) {
xStream.alias("DesignSyncInfo", DesignDefinition.class);