code: public void addBlock(Block block)
      {
          try {
              this.stack.getFirst().add(block);
          } catch (NoSuchElementException e) {
              throw new IllegalStateException("All container blocks are closed, too many calls to endBlockList().");
          }
      }
docs: Add a block to the current block container.
  
  @param block the block to be added.