if (parts == null || parts.length != 2) { ZimbraLog.rmgmt.warn("queue file " + id + " on " + mServerName + " " + mQueueName + " queue invalid " + addressAttr + ": " + address); } else {
if (parts != null && parts.length > 1) {
    private void addEmailAddress(Document doc, String id, String address, QueueAttr addressAttr, QueueAttr domainAttr) {        address = address.toLowerCase();        doc.add(new Field(addressAttr.toString(), address, true, true, false, false));        String[] parts = address.split("@");        if (parts == null || parts.length != 2) {            ZimbraLog.rmgmt.warn("queue file " + id + " on " + mServerName + " " + mQueueName + " queue invalid " + addressAttr + ": " + address);         } else {            doc.add(new Field(domainAttr.toString(), parts[1], true, true, false, false));        }    }