try {
CouchDb configDb = couchClient.getDatabase(dbName);
CouchDesignDocument configDesign = configDb.getDesignDocument("config");
ConfigListenerCollection configListener = new ConfigListenerCollection();
List<ConfigListener> collection = new Vector<ConfigListener>();
collection.add( new ReplicationConfigListener(
couchReplicationUserName
,couchReplicationPassword
,replicationWorker
) );
configListener.setCollection(collection);
configWorker = new ConfigWorker();
configWorker.setDesignDocument(configDesign);
configWorker.setServerName(serverName);
configWorker.setConfigListener(configListener);