ConnectionSettings rc = OptionsManagerImpl.getInstance(). getRemoteSettings(); host = rc.getHost(); password = rc.getOldPassword(); if (host == null || host.length() == 0) { host = "localhost"; } if (host.compareToIgnoreCase("localhost") != 0 && host.compareTo("127.0.0.1") != 0) { zipMode = "mode=zip&"; }
init();
    private ModifiedXMLHolder() {        logger = Logger.getLogger(getClass());        try {            ConnectionSettings rc = OptionsManagerImpl.getInstance().                getRemoteSettings();            host = rc.getHost();            password = rc.getOldPassword();            if (host == null || host.length() == 0) {                host = "localhost";            }            if (host.compareToIgnoreCase("localhost") != 0 &&                host.compareTo("127.0.0.1") != 0) {                zipMode = "mode=zip&";            }            xmlCommand = "/xml/modified.xml";            Class parser = SAXParser.class;            xr = XMLReaderFactory.createXMLReader(parser.getName());            xr.setContentHandler(this);        }        catch (Exception ex) {            if (logger.isEnabledFor(Level.ERROR)){                logger.error(ApplejuiceFassade.ERROR_MESSAGE, ex);            }        }    }