if (messages.length != sysex.length) {
if (messages.length != descs.length) {
    boolean supportsMessages(SysexMessage[] messages) {        if (messages.length != sysex.length) {            return false;        }        LinkedList l = new LinkedList();        for (int i = 0; i < descs.length; i++) {            l.add(descs[i]);        }        for (int i = 0; i < messages.length; i++) {            String header = getHeader(messages[i].getData());            Iterator it = l.iterator();            boolean found = false;            while (it.hasNext()) {                SysexDesc d = (SysexDesc)it.next();                if (d.matches(header)) {                    found = true;                    it.remove();                    break;                }            }            if (!found)                return false;        }        return true;    }