if(mapStream==null){
throw new RulesException("undefined", "getAutoDataMapDef()",
"The mapping '"+name+"' is undefined");
}
AutoDataMapDef admd = new AutoDataMapDef();
admd.configure(mapStream);
mapDefinitions.put(name, admd);
}
AutoDataMap autoDataMap = mapDefinitions.get(name).newAutoDataMap(session);
autoDataMap.setSession(session);
return autoDataMap;