public List getCallStackElements(String clientId)
{
DebuggerClient client = determineClient(clientId);
ContextInspector inspector = client.getInspector();
CallStack callStack = inspector.getContext().getCallStack();
if (callStack.getCallDepth() == 0)
// Empty call stack
return null;
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();