docs: protected AuditTaskImpl getAuditTask(TaskEvent event, TaskPersistenceContext persistenceContext, Task ti) {
          AuditTaskImpl auditTaskImpl = persistenceContext.queryWithParametersInTransaction("getAuditTaskById", true, 
                  persistenceContext.addParametersToMap("taskId", ti.getId()),
                  ClassUtil.<AuditTaskImpl>castClass(AuditTaskImpl.class));
          
          return auditTaskImpl;
      }