/** * Get the current execution stack from context. * * @return the current stack from the execution context, never null */ public Stack getStack() { Stack stack = (Stack) getInternalObject(PrivateKeys.STACK, true); if (stack == null) { stack = new Stack(); setInternalObject(PrivateKeys.STACK, stack, true); } return stack; }
/** * Get the current execution stack from context. * * @return the current stack from the execution context, never null */ public Stack getStack() { Stack stack = (Stack) getInternalObject(PrivateKeys.STACK, true); if (stack == null) { stack = new Stack(); setInternalObject(PrivateKeys.STACK, stack, true); } return stack; }