List elements = new ArrayList();
// Iterate the call stack and create the list of stack info objects
for (Iterator it = callStack.iterator(); it.hasNext();)
{
CallStackItem stackItem = (CallStackItem) it.next();
CallStackInfo stackInfo = new CallStackInfo();
stackInfo.setType(stackItem.getType());
// TODO Fix 5 No difference between current pos. and saved pos. of call stack info
NodeSocket nodeSocket = stackItem.getNodeSocket();
stackInfo.setCurrentPosition(nodeSocket.getQualifier());
stackInfo.setSavedPosition(nodeSocket.getQualifier());
elements.add(stackInfo);
}