int port = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "proxy", "port"}));
int port = -1; try{ port = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "proxy", "port"})); } catch (Exception e){}
    protected void init(){        try{            String temp = getFirstAttrbuteByTagName(new String[]{"options", "location", "main", "x"});            if (temp.length()!=0){                legal = true;                int mainX = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "main", "x"}));                int mainY = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "main", "y"}));                mainXY = new Point(mainX, mainY);                int mainWidth = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "main", "width"}));                int mainHeight = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "main", "height"}));                mainDimension = new Dimension(mainWidth, mainHeight);                downloadWidths = new int[10];                downloadWidths[0] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column0"}));                downloadWidths[1] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column1"}));                downloadWidths[2] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column2"}));                downloadWidths[3] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column3"}));                downloadWidths[4] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column4"}));                downloadWidths[5] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column5"}));                downloadWidths[6] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column6"}));                downloadWidths[7] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column7"}));                downloadWidths[8] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column8"}));                downloadWidths[9] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "download", "column9"}));                uploadWidths = new int[7];                uploadWidths[0] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "upload", "column0"}));                uploadWidths[1] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "upload", "column1"}));                uploadWidths[2] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "upload", "column2"}));                uploadWidths[3] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "upload", "column3"}));                uploadWidths[4] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "upload", "column4"}));                uploadWidths[5] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "upload", "column5"}));                uploadWidths[6] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "upload", "column6"}));                serverWidths = new int[4];                serverWidths[0] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "server", "column0"}));                serverWidths[1] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "server", "column1"}));                serverWidths[2] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "server", "column2"}));                serverWidths[3] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "server", "column3"}));                searchWidths = new int[6];                searchWidths[0] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "search", "column0"}));                searchWidths[1] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "search", "column1"}));                searchWidths[2] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "search", "column2"}));                searchWidths[3] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "search", "column3"}));                searchWidths[4] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "search", "column4"}));                searchWidths[5] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "search", "column5"}));                shareWidths = new int[3];                shareWidths[0] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "share", "column0"}));                shareWidths[1] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "share", "column1"}));                shareWidths[2] = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "location", "share", "column2"}));                boolean use = new Boolean(getFirstAttrbuteByTagName(new String[]{"options", "proxy", "use"})).booleanValue();                String host = getFirstAttrbuteByTagName(new String[]{"options", "proxy", "host"});                int port = Integer.parseInt(getFirstAttrbuteByTagName(new String[]{"options", "proxy", "port"}));                String userpass = getFirstAttrbuteByTagName(new String[]{"options", "proxy", "userpass"});                proxySettings = new ProxySettings(use, host, port, userpass);            }        }        catch (Exception e)        {            if (logger.isEnabledFor(Level.ERROR))                logger.error("Unbehandelte Exception", e);        }    }