Isolate code causing issues with JRuby.
Isolate code causing issues with JRuby.

See https://github.com/jruby/jruby/issues/4807

deep-cover/deep-cover,deep-cover/deep-cover,deep-cover/deep-cover,deep-cover/deep-cover