This way it works on both jRuby and MRI.