if (log.isDebugEnabled()) {log.debug("writeSet: value: " + n);}
    public final void writeSet(int type, Set s) throws IOException {       if (log.isDebugEnabled()) {log.debug("writeSet: type: " + type);}        if (s == null) {            writeInt(1);            out.write(type); //e.g. gds.isc_tpb_version3        }        else {            writeInt(s.size() + 1);            out.write(type);            Iterator i = s.iterator();            while (i.hasNext()) {                int n = ((Integer)i.next()).intValue();                out.write(n);                if (log.isDebugEnabled()) {log.debug("writeSet: value: " + n);}            }            if (log.isDebugEnabled()) {log.debug("writeSet: padding 0 : " + ((4 - (s.size() + 1)) & 3));}            for (int j = 0; j < ((4 - (s.size() + 1)) & 3); j++) {                out.write(0);            }        }    }