/** Overrides the singleton {@link XMLStreamReaderFactory} instance that the JAX-WS RI uses. */ public static void set(XMLStreamReaderFactory f) { if (f == null) { throw new IllegalArgumentException(); } streamReader.set(f); }