//--- use StatusActionsFactory and StatusActions class to
//--- change status and carry out behaviours for status changes
StatusActionsFactory saf = new StatusActionsFactory(gc.getStatusActionsClass());
StatusActions sa = saf.createStatusActions(context);
Set<Integer> metadataIds = new HashSet<Integer>();
metadataIds.add(iLocalId);
sa.statusChange(status, metadataIds, changeDate, changeMessage);
//--- reindex metadata
dataMan.indexMetadata(id, true);
//--- return id for showing