try { String temp = getFirstAttrbuteByTagName(new String[] {"options", "linklistenerport"}); ; if (temp == null || temp.length() == 0) { throw new Exception("Kein linklistenerport angegeben"); } return new Integer(temp).intValue(); } catch (Exception e) { AppleJuiceDialog.rewriteProperties = true; if (logger.isEnabledFor(Level.ERROR)) { logger.error(PROPERTIES_ERROR_MESSAGE, e); } AppleJuiceDialog.closeWithErrormessage(PROPERTIES_ERROR, false); return -1; } }
Integer tmp = propertyHandler.getAsInt("options_linklistenerport"); if (tmp != null) { return tmp.intValue(); } else { AppleJuiceDialog.rewriteProperties = true; AppleJuiceDialog.closeWithErrormessage(PROPERTIES_ERROR, false); return -1; } }
    public int getLinkListenerPort() {        try {            String temp = getFirstAttrbuteByTagName(new String[] {"options",                "linklistenerport"}); ;            if (temp == null || temp.length() == 0) {                throw new Exception("Kein linklistenerport angegeben");            }            return new Integer(temp).intValue();        }        catch (Exception e) {            AppleJuiceDialog.rewriteProperties = true;            if (logger.isEnabledFor(Level.ERROR)) {                logger.error(PROPERTIES_ERROR_MESSAGE, e);            }            AppleJuiceDialog.closeWithErrormessage(PROPERTIES_ERROR, false);            return -1;        }    }