BATCH-2046: StaxEventItemWriter item grouping tag

Adds support for closing elements in the footer callback that were opened in the header callback. Elements that were opened but not closed when writing the header callback are persisted to the execution context. On restart, these elements are closed in the footer callback by writing the close tags directly to the underlying java.io.Writer instead of to the XMLEventWriter.