Index: /trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/HTTPLogParser.java
===================================================================
--- /trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/HTTPLogParser.java	(revision 1989)
+++ /trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/HTTPLogParser.java	(revision 1990)
@@ -195,7 +195,26 @@
         Session session = sessionObj.getValue();
 
+        long orderingId = 0;
         if ((session.getHttpExchange() != null) && (session.getHttpExchange().size() > 0)) {
             List<Event> sequence = new LinkedList<Event>();
             for (HttpExchange exchange : session.getHttpExchange()) {
+                
+                // check, if the exchange is an old one and does not contain ordering ids yet.
+                // If not, then add them.
+                if (exchange.getRequest().getOrderingId() == null) {
+                    exchange.getRequest().setOrderingId(orderingId++);
+                }
+                else {
+                    orderingId = exchange.getRequest().getOrderingId();
+                }
+                
+                if (exchange.getResponse().getOrderingId() == null) {
+                    exchange.getResponse().setOrderingId(orderingId++);
+                }
+                else {
+                    orderingId = exchange.getResponse().getOrderingId();
+                }
+                
+                // now handle the exchange
                 sequence.add(new Event(createEvent(exchange),
                                        new HTTPTarget(exchange.getReceiver())));
Index: /trunk/autoquest-plugin-http/src/main/resources/HttpExchangeStructure.xsd
===================================================================
--- /trunk/autoquest-plugin-http/src/main/resources/HttpExchangeStructure.xsd	(revision 1989)
+++ /trunk/autoquest-plugin-http/src/main/resources/HttpExchangeStructure.xsd	(revision 1990)
@@ -33,4 +33,5 @@
     <xsd:attribute name="url" use="required" type="xsd:anyURI" />
     <xsd:attribute name="query" type="xsd:string" />
+    <xsd:attribute name="orderingId" type="xsd:long" />
   </xsd:complexType>
 
@@ -41,4 +42,5 @@
     </xsd:sequence>
     <xsd:attribute name="status" use="required" type="xsd:integer" />
+    <xsd:attribute name="orderingId" type="xsd:long" />
   </xsd:complexType>
 
