public static Map newContext(IndexSearcher searcher){
  Map context=new IdentityHashMap();
  context.put("searcher",searcher);
  return context;
}

public static Map newContext ( IndexSearcher searcher ) { Map context = new IdentityHashMap ( ) ; context . put ( "searcher" , searcher ) ; return context ; }
returns a new non - threadsafe context map .
