Java 8 ships with the Java API for XML Processing (JAXP) 1.6, which includes
updates that affect how JAXP service providers are loaded.
This rule flags invocations of the newFactory(String factoryId, ClassLoader classLoader)
and the newInstance(String factoryId, ClassLoader classLoader)
methods on the following javax.xml.stream package factory classes:
If you move to Java 8 and experience JAXP service provider class loading issues,
review the clarifications in the newFactory Java documentation and in the following references
to determine if the factoryId and class loader parameters are correct.
Because the newInstance methods are deprecated, use the newFactory methods instead.