CatalogIndexAdapter indexAdapter = getCatalogIndexAdapter();
if (indexAdapter!=null) {
StringSet uuids = new StringSet();
uuids.add(record.getUuid());
indexAdapter.deleteDocuments(uuids.toArray(new String[0]));
if (cswRemoteRepository.isActive()) {
StringSet fids = queryFileIdentifiers(uuids);
if (fids.size() > 0) cswRemoteRepository.onRecordsDeleted(fids);
}
}