code: public static <T> Provider<T> fromSpring(Class<T> type, String name) {
      return new InjectableSpringProvider<T>(type, name);
    }
docs: Creates a provider which looks up objects from Spring using the given name. Expects a binding
  to {@link org.springframework.beans.factory.BeanFactory}. Example usage:
  
  <pre>
  bind(DataSource.class)
  .toProvider(fromSpring(DataSource.class, "dataSource"));
  </pre>