Moved checkAuthorization to abstract JsonCommandHandler