String changeMessage = Util.getParam(params, Params.CHANGE_MESSAGE);
ISODate changeDate = new ISODate();
//--- 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);