try { String line; while((line = myInputStream.readLine()) != null) { DebugLog.log(Level.CONFIG, line); System.err.flush(); System.out.flush(); if (line != null && (line.startsWith("PASS: ") || line.startsWith("FAIL: "))) { System.out.println(line); } } } catch (IOException e) { e.printStackTrace(); } }
try { String line; while ((line = myInputStream.readLine()) != null) { DebugLog.log(Level.CONFIG, line); if (myHelpStream != null) { myHelpStream.println(line); myHelpStream.flush(); } System.err.flush(); System.out.flush();  if (line != null && (line.startsWith("PASS: ") || line.startsWith("FAIL: "))) { System.out.println(line); } } } catch (IOException e) { e.printStackTrace(); } }
        public void run() {            try {                String line;                while((line = myInputStream.readLine()) != null) {                    DebugLog.log(Level.CONFIG, line);                    System.err.flush();                    System.out.flush();                    if (line != null && (line.startsWith("PASS: ") || line.startsWith("FAIL: "))) {                        System.out.println(line);                    }                }            } catch (IOException e) {                e.printStackTrace();            }         }