public Map<String, LocalResource> getResourceMap() {
    return ImmutableMap.copyOf(localResourceMap);
  }
A universal approach to generate local resource map which can be put in ContainerLaunchContext directly
samza-yarn/src/main/java/org/apache/samza/job/yarn/LocalizerResourceMapper.java