Factory method creates {@link InvocationProcessor} instance that implements additional {@link XMLStreamWriter} feature or enhancement.paramwriter underlying {@link XMLStreamWriter} instance that should be enhanced with the new feature(s).returnnewly created {@link InvocationProcessor} instance.throwsXMLStreamException in case of any problems with creation of new {@link InvocationProcessor} instance.