public static synchronized GridTestPrintStream acquireOut(){
  if (testOut == null)   testOut=new GridTestPrintStream(sysOut);
  if (outCnt == 0)   System.setOut(testOut);
  outCnt++;
  return testOut;
}

public static synchronized GridTestPrintStream acquireOut ( ) { if ( testOut == null ) testOut = new GridTestPrintStream ( sysOut ) ; if ( outCnt == 0 ) System . setOut ( testOut ) ; outCnt ++ ; return testOut ; }
acquires output stream for logging tests .
