protected Deque < XMLEvent > getAdditionalEvents ( XMLEvent event ) { final XMLEvent additionalEvent = this . getAdditionalEvent ( event ) ; if ( additionalEvent == null ) { return null ; } final Deque < XMLEvent > additionalEvents = new LinkedList < XMLEvent > ( ) ; additionalEvents . push ( additionalEvent ) ; return additionalEvents ; }
The Deque with the additional events WILL BE MODIFIED by the calling code .