/**
  * Set the current analysis context for this thread.
  *
  * @param analysisContext the current analysis context for this thread
  */
 public static void setCurrentAnalysisContext(AnalysisContext analysisContext) {
   currentAnalysisContext.set(analysisContext);
   if (Global.getAnalysisCache() != null) {
     currentXFactory.set(new XFactory());
   }
 }
 public static XFactory currentXFactory() {
   return currentXFactory.get();
 }