Preconditions.checkArgument(arg0 instanceof SoyMapData,
"First argument to augmentMap() function is not SoyMapData.");
Preconditions.checkArgument(arg1 instanceof SoyMapData,
"Second argument to augmentMap() function is not SoyMapData.");
AugmentedSoyMapData augmentedMap = new AugmentedSoyMapData((SoyMapData) arg0);
SoyMapData additionalMap = (SoyMapData) arg1;
for (String key : additionalMap.getKeys()) {
augmentedMap.putSingle(key, additionalMap.getSingle(key));
}
return augmentedMap;
}