if (getClass()==DownloadPartListXMLHolder.class){
if (getClass()==DownloadPartListXMLHolder.class || getClass()==UserPartListXMLHolder.class){
    public void reload(String parameters) throws Exception{        String xmlData = null;        try        {            if (useTimestamp)            {                xmlData = HtmlLoader.getHtmlXMLContent(host, HtmlLoader.GET,                                                       xmlCommand + "?password=" + password + "&timestamp=" +                                                       timestamp + parameters);            }            else            {                if (parameters.length() != 0)                {                    xmlData = HtmlLoader.getHtmlXMLContent(host, HtmlLoader.GET,                                                           xmlCommand + "?password=" + password + "&" + parameters);                }                else                {                    xmlData = HtmlLoader.getHtmlXMLContent(host, HtmlLoader.GET,                                                           xmlCommand + "?password=" + password);                }            }        }        catch (WebSiteNotFoundException ex)        {            AppleJuiceDialog.closeWithErrormessage(                    "Die Verbindung zum Core ist abgebrochen.\r\nDas GUI wird beendet.", true);        }        DocumentBuilderFactory factory =                DocumentBuilderFactory.newInstance();        try        {            DocumentBuilder builder = factory.newDocumentBuilder();            document = builder.parse(new InputSource(new StringReader(xmlData)));            if (!firstRun)            {                if (useTimestamp)                {                    timestamp = Long.parseLong(getFirstAttrbuteByTagName(new String[]{                        "applejuice", "time"}                                                                         , true));                }            }            else            {                firstRun = !firstRun;            }        }        catch (Exception e)        {            Exception x = e;            if (e instanceof SAXException){                if (((SAXException)e).getException() != null)                {                    x = ((SAXException)e).getException();                }            }            if (getClass()==DownloadPartListXMLHolder.class){                throw new PartlistException();            }            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) {                    ioE.printStackTrace();  //To change body of catch statement use Options | File Templates.                }                logger.error("Unbehandelte SAX-Exception -> Inhalt in " + dateiname, x);            }            x.printStackTrace();        }    }