[REFACTOR] moved updateRestResult event generation