if (sfLog().isTraceEnabled()) { sfLog().trace("FOUND LINE "+line+", "+filterIndex+", "+filterName);
if (sfLog().isDebugEnabled()) { sfLog().debug("FOUND LINE "+line+", "+filterIndex+", "+filterName);
  public synchronized void found( String line, int filterIndex, String filterName){    if (sfLog().isTraceEnabled()) {       sfLog().trace("FOUND LINE "+line+", "+filterIndex+", "+filterName);    }    if (filterIndex == 0) {      //Finished      if (line.indexOf(cmd.getEchoCommand()+" "+"MARK - "+TYPE_DONE+" "+name)!=-1) return; // This is the echo command itself, ignore      //What do we do if err continues producing output?, should we wait forever?      ((ScriptResultsImpl)results).stdOut.add("-finished-");      ((ScriptResultsImpl)results).stdErr.add("-finished-");       Integer exitCode = new Integer(-999999);       int index = line.indexOf("Exit code#:"); // 11 chars       if (index!=-1){        try {          exitCode = new Integer(line.substring(index+ 12).trim());        } catch (NumberFormatException ex) {          if (sfLog().isWarnEnabled()) { sfLog().warn(ex);}        }       }       //System.out.println("\n -- Finished -- "+line);       createNewScriptResults(exitCode);    } else if (filterIndex==1){      //Next command will follow       if (line.indexOf(cmd.getEchoCommand()+" "+"MARK - "+TYPE_NEXT_CMD+" "+name)!=-1) return; // This is the echo command itself, ignore      ((ScriptResultsImpl)results).stdOut.add("--- NEXT Command ---");      ((ScriptResultsImpl)results).stdErr.add("--- NEXT Command ---");       //System.out.println("\n -- GO NEXT Command -- "+line);    } else {      System.out.println("\nFOUND ???? LINE " + line + ", " + filterIndex + ", " + filterName);    }  }