Witam
Używam biblioteki Xstream do zapisywania danych i napotkałem na błąd z którym nie wiem co zrobić.
Mam taki kod.

public static void save(Map<Integer, Situation> situations) throws IOException{
		FileChooser fileChooser = new FileChooser();
		fileChooser .getExtensionFilters().addAll(
					new FileChooser.ExtensionFilter("ALL FILE", "*.*"),
					new FileChooser.ExtensionFilter("SYT", "*.syt")
				);
		
		XStream xStream = new XStream(new DomDriver());
		String toSave = xStream.toXML(situations);
		
		File file =  fileChooser.showSaveDialog(null);
		if (file.exists()) {
			file.createNewFile();
			PrintWriter writer = new PrintWriter(file);
			writer.println(toSave);
			writer.close();
		}
	} 

Kiedy odpalam aplikacje przez Eclipsa wszystko zapisuje sie i wczytuje normalnie (http://4programmers.net/Pastebin/3460)

Natomiast kiedy po zbudowaniu ant'em itp odpalam tę aplikacje jako .exe to tworzy sie potworek na 33 tyś (!) linijek.
Czy ktoś wie może z czego to wynika?