code: private ObjectFactory getObjectFactory() throws IllegalAccessException {
          if (Env.INSTANCE.get(ObjectFactory.class.getName()).equals(CitrusObjectFactory.class.getName())) {
              return CitrusObjectFactory.instance();
          } else if (Env.INSTANCE.get(ObjectFactory.class.getName()).equals(CitrusSpringObjectFactory.class.getName())) {
              return CitrusSpringObjectFactory.instance();
          }
  
          return ObjectFactoryLoader.loadObjectFactory(new ResourceLoaderClassFinder(resourceLoader, Thread.currentThread().getContextClassLoader()),
                  Env.INSTANCE.get(ObjectFactory.class.getName()));
      }
docs: Gets the object factory instance that is configured in environment.
  @return