code: public static BundleLookupThreadContext getThreadContext(boolean createIfMissing) {
  		BundleLookupThreadContext context = threadContext.get();
  		if(createIfMissing && context==null) {
  			context = new BundleLookupThreadContext();
  			threadContext.set(context);
  		}
  		return context;
  	}
docs: Gets the current context or <code>null</code> if none set and none created.