}
}
@Override
public Object mapMap(AutoDataMap autoDataMap, LabelMap labelMap, MapNodeMap node){
RTable rTable = null;
try {
RName rname = null;
Object object = autoDataMap.getCurrentObject();
if(object instanceof IREntity){
IREntity entity = (IREntity) object;
rname = mapName(autoDataMap, labelMap, node.getAttribute().getName() );
IRObject olist = entity.get(rname);
if(olist != null && olist.type().getId() == IRObject.iTable){
rTable = olist.rTableValue();
}
}
if(rTable == null){
rTable = RTable.newRTable(autoDataMap.getSession().getEntityFactory(),
null , null);
}
node.setTargetMap(rTable);
if(node.getMap() != null){
Set<Object> keys = node.getMap().keySet();
for(Object key : keys ){
rTable.setValue(iconvert(key),
iconvert(node.getMap().get(key).toString()));
}
}
} catch (RulesException e) { }