class MessageProcessingSequence implements IMessageProcessingSequence, IDumpable {

    @Override
    public int getStepAtLevel(final int level) throws InvalidArgumentException {
        if (level < 0 || level > stackIndex) {
            throw new InvalidArgumentException("Level index is out of range.");
        }

        return stepStack[level];
    }

    public  MessageProcessingSequence(final int stackDepth, final IReceiverChain mainChain);

}