code: public PurgeJmsQueuesBuilder withApplicationContext(ApplicationContext applicationContext) {
          if (applicationContext.containsBean("connectionFactory")) {
              connectionFactory(applicationContext.getBean("connectionFactory", ConnectionFactory.class));
          }
  
          return this;
      }
docs: Sets the Spring bean factory for using endpoint names.
  @param applicationContext