public static void reconfigureOpenfireHome() throws Exception {
        final URL configFile = ClassLoader.getSystemResource("conf/openfire.xml");
        if (configFile == null) {
            throw new IllegalStateException("Unable to read openfire.xml file; does conf/openfire.xml exist in the test classpath, i.e. test/resources?");
        }
        final Path openfireHome = Paths.get(configFile.toURI()).getParent().getParent();
        JiveGlobals.setHomePath(openfireHome);
    }
Reconfigures the Openfire home directory to the blank test one. This allows {@link JiveGlobals#setProperty(String, String)} etc.
to work (and persist) in test classes without errors being displayed to stderr. Ideally should be called in a
{@link org.junit.BeforeClass} method.
xmppserver/src/test/java/org/jivesoftware/Fixtures.java