if (workflowAction instanceof WorkflowTask) {
WorkflowTask workflowTask = (WorkflowTask) workflowAction;
List<WorkflowParticipation> participations = workflowTask.getParticipations();
if (participations != null) {
for (WorkflowParticipation participation : participations) {
JahiaPrincipal principal = participation.getJahiaPrincipal();
if ((principal instanceof JahiaGroup && ((JahiaGroup) principal).isMember(session.getUser())) ||
(principal instanceof JahiaUser && ((JahiaUser) principal).getUserKey().equals(session.getUser().getUserKey()))) {
gwtWf.getAvailableTasks().add(getGWTJahiaWorkflowTask(workflowTask));
break;
}