WSOTWO-126: corrected code of Switch mediator