if (useTimestamp) { timestamp = Long.parseLong(getFirstAttrbuteByTagName(new String[] { "applejuice", "time"} , true)); }
    public void reload(String parameters, boolean throwWebSiteNotFoundException) throws        Exception {        String xmlData = null;        try {            String command = xmlCommand + "?";            if (parameters.indexOf("mode=zip") == -1) {                command += zipMode;            }            if (parameters.length() != 0) {                command += "password=" + password + "&" + parameters;            }            else {                command += "password=" + password;            }            xmlData = HtmlLoader.getHtmlXMLContent(host, HtmlLoader.GET,                command);            if (xmlData.length() == 0) {                throw new IllegalArgumentException();            }        }        catch (WebSiteNotFoundException ex) {            if (throwWebSiteNotFoundException) {                throw ex;            }            else {                return;            }        }        DocumentBuilderFactory factory =            DocumentBuilderFactory.newInstance();        try {            DocumentBuilder builder = factory.newDocumentBuilder();            document = builder.parse(new InputSource(new StringReader(xmlData)));        }        catch (Exception e) {            Exception x = e;            if (e.getClass() == SAXException.class) {                if ( ( (SAXException) e).getException() != null) {                    x = ( (SAXException) e).getException();                }            }            if (getClass() == DownloadPartListXMLHolder.class                || getClass() == UserPartListXMLHolder.class) {                throw new PartlistException();            }            else if (logger.isEnabledFor(Level.ERROR)) {                String zeit = Long.toString(System.currentTimeMillis());                String path = System.getProperty("user.dir") + File.separator +                    "logs";                File aFile = new File(path);                if (!aFile.exists()) {                    aFile.mkdir();                }                FileWriter fileWriter = null;                String dateiname = path + File.separator + zeit + ".exc";                try {                    fileWriter = new FileWriter(dateiname);                    fileWriter.write(xmlData);                    fileWriter.close();                }                catch (IOException ioE) {                    logger.error(ioE);                }                logger.error("Unbehandelte SAX-Exception -> Inhalt in " +                             dateiname, x);            }        }    }