public function getActivityStatus(KModelEntityInterface $object, $action = null)
    {
        $status = $object->getStatus();

        // Commands may change the original status of an action.
        if ($action == 'after.add' && $status == KModelEntityInterface::STATUS_UPDATED) {
            $status = KModelEntityInterface::STATUS_CREATED;
        }

        // Ignore non-changing edits.
        if ($action == 'after.edit' && $status == KModelEntityInterface::STATUS_FETCHED) {
            $status = null;
        }

        return $status;
    }