@Override
   public void handleEvent(IParserEvent event)
   {
      events.add(event);
      switch (event.getType())
      {
         case GROUP_START_EVENT:
         {
            ++groupCount;
            break;
         }

         case GROUP_END_EVENT:
         {
            --groupCount;
            break;
         }

         default:
            break;
      }

      if (groupCount == 0)
      {
         processCommands();
      }
   }