Using generics for ApplicationListeners
Removing needless elements for XForm in PDF