Couldn't we just use the newInstance() method which takes a class loader and pass the loader of XmlParserHelper? Then the variable could remain static as we shouldn't leak the deployment's loader anymore?