/**
* Codes a <code>ConnectionFactory</code> as a Hashtable for travelling
* through the SOAP protocol.
*/
public Hashtable code() {
Hashtable h = new Hashtable();
if (cluster == null) return h;
Map.Entry entries[] = new Map.Entry [cluster.size()];
cluster.entrySet().toArray(entries);
StringBuffer strbuf = new StringBuffer(15);
for (int i=0; i<entries.length; i++) {
strbuf.setLength(0);
strbuf.append("CF#").append(i).append(".key");
h.put(strbuf.toString(), entries[i].getKey());
ConnectionFactory cf = (ConnectionFactory) entries[i].getValue();
strbuf.setLength(0);
strbuf.append("CF#").append(i).append(".class");
h.put(strbuf.toString(), cf.getClass().getName());
strbuf.setLength(0);
strbuf.append("CF#").append(i);
cf.code(h, strbuf.toString());
}