if (!versionNr.equals("0.0.0.0")) {
if (!versionNr.equals("0.0.0.0") && os != -1) {
    private void checkUploadAttributes(Attributes attr){        int id = -1;        for (int i = 0; i < attr.getLength(); i++) {            if (attr.getLocalName(i).equals("id")) {                id = Integer.parseInt(attr.getValue(i));                break;            }        }        if (id == -1) {            return;        }        String key = Integer.toString(id);        UploadDO uploadDO;        if (uploadMap.containsKey(key)) {            uploadDO = (UploadDO) uploadMap.get(key);        }        else{            uploadDO = new UploadDO(id);            uploadMap.put(key, uploadDO);        }        String versionNr = "";        int os = -1;        for (int i = 0; i < attr.getLength(); i++) {            if (attr.getLocalName(i).equals("shareid")) {                uploadDO.setShareFileID(Integer.parseInt(attr.getValue(i)));            }            else if (attr.getLocalName(i).equals("version")) {                versionNr = attr.getValue(i);            }            else if (attr.getLocalName(i).equals("operatingsystem")) {                os = Integer.parseInt(attr.getValue(i));            }            else if (attr.getLocalName(i).equals("status")) {                uploadDO.setStatus(Integer.parseInt(attr.getValue(i)));            }            else if (attr.getLocalName(i).equals("directstate")) {                uploadDO.setDirectState(Integer.parseInt(attr.getValue(i)));            }            else if (attr.getLocalName(i).equals("priority")) {                uploadDO.setPrioritaet(Integer.parseInt(attr.getValue(i)));            }            else if (attr.getLocalName(i).equals("nick")) {                uploadDO.setNick(attr.getValue(i));            }            else if (attr.getLocalName(i).equals("uploadfrom")) {                uploadDO.setUploadFrom(Long.parseLong(attr.getValue(i)));            }            else if (attr.getLocalName(i).equals("actualuploadposition")) {                uploadDO.setActualUploadPosition(Long.parseLong(attr.getValue(i)));            }            else if (attr.getLocalName(i).equals("uploadto")) {                uploadDO.setUploadTo(Long.parseLong(attr.getValue(i)));            }            else if (attr.getLocalName(i).equals("speed")) {                uploadDO.setSpeed(Integer.parseInt(attr.getValue(i)));            }            else if (attr.getLocalName(i).equals("id")) {                continue;            }        }        if (!versionNr.equals("0.0.0.0")) {            Version version = new Version(versionNr, os);            uploadDO.setVersion(version);        }        if (shareMap == null){            shareMap = ApplejuiceFassade.getInstance().getShare(false);        }        ShareDO shareDO = (ShareDO) shareMap.get(uploadDO.getShareFileIDAsString());        if (shareDO != null) {            uploadDO.setDateiName(shareDO.getShortfilename());        }        else{            //wenns die passende Sharedatei aus irgendeinem Grund nicht geben sollte,            //wird dieser Upload auch nicht angezeigt            uploadMap.remove(key);        }    }