if (isSession) {
FileInputStream sessionResourcesStream = null;
try {
sessionResourcesStream = new FileInputStream(
TezConfiguration.TEZ_SESSION_LOCAL_RESOURCES_PB_FILE_NAME);
PlanLocalResourcesProto sessionLocalResourcesProto =
PlanLocalResourcesProto.parseDelimitedFrom(sessionResourcesStream);
PlanLocalResourcesProto amLocalResourceProto = PlanLocalResourcesProto
.parseDelimitedFrom(sessionResourcesStream);
sessionResources.putAll(DagTypeConverters.convertFromPlanLocalResources(
sessionLocalResourcesProto));
amResources.putAll(DagTypeConverters.convertFromPlanLocalResources(amLocalResourceProto));
amResources.putAll(sessionResources);