private void splitEventsToMultipleSortedFiles() {
   EventsManager events = EventsUtils.createEventsManager();
   SplitEventsToMultipleSortedFiles setmsf =
       new SplitEventsToMultipleSortedFiles(outputPath + "\\sorted_", 100000);
   events.addHandler(setmsf);
   EventsReaderXMLv1 reader = new EventsReaderXMLv1(events);
   reader.setValidating(false);
   reader.parse(inFileName);
   setmsf.writeQueue();
   setmsf.closeFile();
 }
  public static void main(String[] args) {
    // String eventsFile="C:/data/parkingSearch/psim/berlin/ITERS/it.50/50.events.xml.gz";
    // String eventsFile="C:/data/parkingSearch/psim/output/all/events.xml.gz";

    // String
    // eventsFile="H:/data/experiments/TRBAug2011/runs/ktiRun24/output/ITERS/it.50/50.events.xml.gz";
    String eventsFile =
        "C:/data/parkingSearch/psim/zurich/output/basic output with 300 sec bins/events.xml.gz";

    EventsManager events = EventsUtils.createEventsManager();

    SingleAgentEventsPrinter singleAgentEventsPrinter =
        new SingleAgentEventsPrinter(Id.create("65802", Person.class));

    events.addHandler(singleAgentEventsPrinter);

    // EventsReaderTXTv1 reader = new EventsReaderTXTv1(events);
    // reader.readFile(eventsFile);

    EventsReaderXMLv1 reader = new EventsReaderXMLv1(events);
    reader.parse(eventsFile);
  }