try {
Class clazz = Class.forName(classname);
ConnectionFactory cf = (ConnectionFactory) clazz.newInstance();
strbuf.setLength(0);
strbuf.append("CF#").append(i);
cf.fromReference(ref, strbuf.toString());
if (cluster == null) cluster = new Hashtable();
cluster.put(key, cf);
} catch (Exception exc) {
if (logger.isLoggable(BasicLevel.ERROR))