code: public static void wireInSpring(Object o, String myBeanName) {
          // Lambda does not do this for you - though serverless does have a library to do it
          if (ctx == null) {
              synchronized (lck) {
                  if (ctx == null) {
                      LOG.info("LamdaSpringUtil CTX is null -  initialising spring");
                      ctx = new ClassPathXmlApplicationContext(globalRootContextPath);
                  }
              }
          } else {
              LOG.debug("LamdaSpringUtil CTX is not null - not initialising spring");
          }
          AutowireCapableBeanFactory factory = ctx.getAutowireCapableBeanFactory();
          factory.autowireBean(o);
          factory.initializeBean(0, myBeanName);
      }
docs: wires spring into the passed in bean
  @param o
  @param myBeanName