code: public Object get(String name, ObjectFactory<?> factory) {
  		ThreadScopeContext context = ThreadScopeContextHolder.getContext();
  
  		Object result = context.getBean(name);
  		if (null == result) {
  			result = factory.getObject();
  			context.setBean(name, result);
  		}
  		return result;
  	}
docs: Get bean for given name in the "thread" scope.
  
  @param name name of bean
  @param factory factory for new instances
  @return bean for this scope