public static JobProxy fromFactory(JobsResourceConfig config) {
    String jobProxyFactoryClassName = config.getJobProxyFactory();
    if (jobProxyFactoryClassName != null && !jobProxyFactoryClassName.isEmpty()) {
      try {
        JobProxyFactory factory = ReflectionUtil.getObj(jobProxyFactoryClassName, JobProxyFactory.class);
        return factory.getJobProxy(config);
      } catch (Exception e) {
        throw new SamzaException(e);
      }
    } else {
      throw new SamzaException("Missing config: " + JobsResourceConfig.CONFIG_JOB_PROXY_FACTORY);
    }
  }
Creates a new JobProxy instance from the factory class specified in the config.

@param config  the config containing the job proxy factory property.
@return        the JobProxy produced by the factory.
samza-rest/src/main/java/org/apache/samza/rest/proxy/job/AbstractJobProxy.java