private void parseParameters() {
   // <emulator> exist in pom file
   if (emulator != null) {
     // <emulator><avd> exists in pom file
     if (emulator.getAvd() != null) {
       parsedAvd = emulator.getAvd();
     } else {
       parsedAvd = determineAvd();
     }
     // <emulator><options> exists in pom file
     if (emulator.getOptions() != null) {
       parsedOptions = emulator.getOptions();
     } else {
       parsedOptions = determineOptions();
     }
     // <emulator><wait> exists in pom file
     if (emulator.getWait() != null) {
       parsedWait = emulator.getWait();
     } else {
       parsedWait = determineWait();
     }
   }
   // commandline options
   else {
     parsedAvd = determineAvd();
     parsedOptions = determineOptions();
     parsedWait = determineWait();
   }
 }
    public void run() {
      // change the color of the link
      if (startArrow) flashingStart = true;
      else flashingEnd = true;

      Emulator.getRef().redrawGraph();

      stopAt = System.currentTimeMillis() + Options.flashTime;

      while (System.currentTimeMillis() < stopAt) {
        try {
          sleep(stopAt - System.currentTimeMillis());
        } catch (InterruptedException e) {
          // d'oh...
        }
      }

      // switch back the color
      if (startArrow) flashingStart = false;
      else flashingEnd = false;

      Emulator.getRef().redrawGraph();
    }
 protected void writeInternalStreams(byte[] stream, int count) throws IOException {
   String text = new String(stream, 0, count, this.encoding);
   Emulator emulator = new Emulator();
   String controlFreeText = emulator.processText(text);
   MessageConsoleHelper.writeToConsole("M Debug", controlFreeText, false, false);
 }