Watch watch(CompilationRequest request){
  Watch watch=requestForThread.get();
  if (watch == null) {
    watch=new Watch();
synchronized (requests) {
      requests.put(Thread.currentThread(),watch);
    }
  }
  watch.open(request);
  return watch;
}

Watch watch ( CompilationRequest request ) { Watch watch = requestForThread . get ( ) ; if ( watch == null ) { watch = new Watch ( ) ; synchronized ( requests ) { requests . put ( Thread . currentThread ( ) , watch ) ; } } watch . open ( request ) ; return watch ; }
opens a scope for watching the compilation of a given method .
