add code to work with current rubyCAS client. Thanks, @iterateNZ