code: public static <T> T use(Class categoryClass, Closure<T> closure) {
          return THREAD_INFO.getInfo().use(categoryClass, closure);
      }
docs: Create a scope based on given categoryClass and invoke closure within that scope.
  
  @param categoryClass the class containing category methods
  @param closure the closure during which to make the category class methods available
  @return the value returned from the closure