// publish to or remove from the index
CatalogIndexAdapter indexAdapter = getCatalogIndexAdapter();
if ((indexAdapter != null) && (uuids.size() > 0)) {
if (MmdEnums.ApprovalStatus.isPubliclyVisible(approvalStatus.toString())) {
StringAttributeMap params = this.getRequestContext().getCatalogConfiguration().getParameters();
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]));