public void addResources(RefCountedResource rcr) {
      localResources.addAll(rcr.resources);
      originals.add(rcr);
    }
This class localizes and manages jars for the functions allowed inside LLAP.
llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/FunctionLocalizer.java