Index: trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/commands/CMDgenerateJacaretoReplay.java
===================================================================
--- trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/commands/CMDgenerateJacaretoReplay.java	(revision 1712)
+++ trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/commands/CMDgenerateJacaretoReplay.java	(revision 1713)
@@ -40,5 +40,5 @@
 // helper class for the tree like structure part within a Jacareto file
 class StructureNode {
-    private static int nextRef = 0;
+    public static int nextRef = 0;
 
     public String content;
@@ -163,4 +163,6 @@
         currentKeyModifiers = 0;
 
+        StructureNode.nextRef = 0;
+
         writeJacaretoXML(sequences, filename, classpath, initclass, basepath, classpathext);
     }
@@ -183,6 +185,4 @@
         // TODO: This header content is basically copy+paste from a
         // specific jacareto replay file right now.
-        // Some things such as screen resolution and especially the
-        // application starter details need to be changed for general cases.
         writeLine(writer,
                   "<Calendar procTime=\"0\" duration=\"0\" year=\"2000\" month=\"1\" date=\"11\" hour=\"1\" min=\"1\" sec=\"1\" uuid=\"06831ba1-f28a-4e05-b46e-ce9d8f9ffa0f\" />");
@@ -525,5 +525,4 @@
             return String.valueOf((char)keyCode);
         }
-
         return "_NO_LEGAL_XML_CHAR";
     }
