return ref;
}
@Override
public LabelMap getLabelMap(AutoDataMap autoDataMap, MapNodeObject node){
LabelMap labelMap = autoDataMapDef.findLabelMap(node.getLabel());
while(labelMap != null && labelMap.getTargetGroup() != autoDataMap.getCurrentGroup()){
labelMap = labelMap.getNext();
}
if(labelMap == null){
Label sourceLabel = node.getSourceLabel();
String targetLabelname = node.getLabel();
Label.newLabel(
autoDataMap.getCurrentGroup(),
targetLabelname,
targetLabelname,
sourceLabel.getKey(),
false);
labelMap = new LabelMap(autoDataMapDef, node.getLabel(), targetLabelname);
labelMap.setSourceGroup(node.getGroup());
labelMap.setTargetGroup(autoDataMap.getCurrentGroup());
autoDataMapDef.addLabelMap(labelMap);
}
return labelMap;
}