private boolean isLocalDeployment(JobConfig jobConfig) {
    String jobFactoryClass = jobConfig.getStreamJobFactoryClass().orElse(null);
    return ProcessJobFactory.class.getName().equals(jobFactoryClass) ||
        ThreadJobFactory.class.getName().equals(jobFactoryClass);
  }
Constructors a {@link RemoteApplicationRunner} to run the {@code app} with the {@code config}.

@param app application to run
@param config configuration for the application
samza-core/src/main/java/org/apache/samza/runtime/RemoteApplicationRunner.java