docs: @Override
      public Object load(String batchId) {
          ClassLoader tccl = Thread.currentThread().getContextClassLoader();
  
          BatchXMLMapper batchXMLMapper = new BatchXMLMapper(tccl);
  
          //If CDI factory is loaded, use it.
          if (cdiBatchArtifactFactory != null) {
              Object artifact = null;
              artifact = cdiBatchArtifactFactory.load(batchId);
              if (artifact != null) {
                  return artifact;
              }
          }
  
          if (logger.isLoggable(Level.FINER)) {
              logger.log(Level.FINER, "load: Artifact not referenced using CDI, will search through Batch.xml: ", tccl);
          }
  
          Object loadedArtifact = null;
          Class<?> clazz = batchXMLMapper.getArtifactById(batchId);
  
          if (clazz != null) {
              try {
                  loadedArtifact = (clazz).newInstance();
              } catch (IllegalAccessException e) {
                  throw new BatchContainerRuntimeException("Tried but failed to load artifact with id: " + batchId, e);
              } catch (InstantiationException e) {
                  throw new BatchContainerRuntimeException("Tried but failed to load artifact with id: " + batchId, e);
              }
          }
  
          clazz = null;
  
          if (loadedArtifact == null) {
              if (logger.isLoggable(Level.FINER)) {
                  logger.log(Level.FINER, "load: Artifact not found in batch.xml, trying thread context classloader: ", tccl);
              }
              try {
                  clazz = Thread.currentThread().getContextClassLoader().loadClass(batchId);
                  if (clazz != null) {
                      loadedArtifact = clazz.newInstance();
                  }
              } catch (ClassNotFoundException e) {
                  throw new BatchContainerRuntimeException("Failed to load artifact with id: " + batchId, e);
              } catch (InstantiationException e) {
                  throw new BatchContainerRuntimeException("Failed to load artifact with id: " + batchId, e);
              } catch (IllegalAccessException e) {
                  throw new BatchContainerRuntimeException("Failed to load artifact with id: " + batchId, e);
              }
          }
  
          if (cdiBatchArtifactFactory != null && !classExistsInIssuedMessage(clazz)) {
              addClassToIssuedMessage(clazz);
              JoblogUtil.logToJobLogAndTrace(Level.WARNING, "cdi.ambiguous.artifact.names", null, logger);
          }
  
          DependencyInjectionUtility.injectReferences(loadedArtifact, ProxyFactory.getInjectionReferences());
  
          return loadedArtifact;
      }