@Override
    public void run() {
      try {
        while (myScanner.hasNextLine() && !isInterrupted()) {
          String line = myScanner.nextLine();
          if (line != null) {
            line = line.trim();
            if (line.startsWith(PREFIX)) {
              myRef.set(line.substring(PREFIX.length()));
              return;
            }
          }
        }
      }
      catch (Throwable e) {
        myExceptionRef.set(e);
      }
    }
@Override
    public void run()