*/
List<?> elementList = (List<?>) argument;
List<String> idList = new ArrayList<String>();
String id;
stringBuffer.append(TEXT_1);
AbstractNodeModel abstractNode;
NodeModel node = null;
String type = "";
for (Iterator<?> i = elementList.iterator(); i.hasNext();) {
abstractNode = (AbstractNodeModel) i.next();
// abstractNode is either NodeModel or TrafficLightModel!
if (abstractNode.getClass().equals(NodeModel.class)) {
type = "priority";
node = (NodeModel) abstractNode;
}
else if (abstractNode.getClass().equals(TrafficLightModel.class)) {
type = "traffic_light";
node = ((TrafficLightModel) abstractNode).getNode();
}
id = node.getInternalID();