@Override
  public List<? extends Object> getResourceInstances(Config config) {
    return ImmutableList.of(new JobsResource(new JobsResourceConfig(config)),
                            new TasksResource(new TaskResourceConfig(config)));
  }
Instantiates all the resources that are shipped with the REST service.
samza-rest/src/main/java/org/apache/samza/rest/resources/DefaultResourceFactory.java