Iterator<PlanKeyValuePair> iter =
dagPB.getDagKeyValues().getConfKeyValuesList().iterator();
Configuration dagConf = new Configuration(amConf);
while (iter.hasNext()) {
PlanKeyValuePair keyValPair = iter.next();
dagConf.set(keyValPair.getKey(), keyValPair.getValue());
}
Credentials dagCredentials = null;
if (dagPB.hasCredentialsBinary()) {
dagCredentials = DagTypeConverters.convertByteStringToCredentials(dagPB.getCredentialsBinary());