}
// Handling Update Event
public void event(Event event) {
if (ChangeManager.isChangeEvent(event)) {
ObjectAccessEvent oae = (ObjectAccessEvent) event;
if (Tracing.isDebugEnabled(GroupIndexer.class)) Tracing.logDebug("info: oae = "+oae.toString(),GroupIndexer.class);
int action = oae.getAction();
Long id = oae.getOresId();
BusinessGroup newBusinessGroup = BusinessGroupManagerImpl.getInstance().loadBusinessGroup(id,true);
SearchResourceContext searchResourceContext = new SearchResourceContext(); // businessContextString
searchResourceContext.setBusinessControlFor(newBusinessGroup);
Document document = GroupDocument.createDocument(searchResourceContext, newBusinessGroup);
if (action == ChangeManager.ACTION_UPDATE) {