implementat resource event_cause pt modificare metoda eveniment