I think this is OK, but I wonder if it's more easily read as:

```
unless LogStash::Environment.jruby?
  raise ...
end
```