Add the prePersist function in project listener.
Add the prePersist function in task listener.