I have a WAR where a nasty library does things like System.setProperty("javax.xml.stream.XMLInputFactory", ...)
, which breaks the web server container, since the latter depends on the value of the same property (details here).
Before going through the tons of code misbehaving like that (yes, it's not even factorised), I'd like to check if there is some tool (eg, a special class loader) able to maintain WAR-level scope for at least writeable properties, so that these changes would remain in my web application and wouldn't interfere with the web container or other WARs.