String param = Val.chkStr(params.getValue("lucene.useRemoteWriter"));
boolean bUseRemoteWriter = param.equalsIgnoreCase("true");
param = Val.chkStr(params.getValue("lucene.useLocalWriter"));
boolean bUseLocalWriter = !param.equalsIgnoreCase("false");
if (bUseRemoteWriter) {
RemoteIndexer remoteIndexer = new RemoteIndexer();
remoteIndexer.send(this.getRequestContext(),"publish",
uuids.toArray(new String[0]));
}
if (bUseLocalWriter) {
CatalogIndexAdapter indexAdapter = getCatalogIndexAdapter();
for (String uuid: uuids) {