for me it was just to add following definition to default scripting configuration file:
<script-language name="jruby" factory="org.jruby.embed.jsr223.JRubyEngineFactory" />
Please find attached both scripting and config files.
But as Michael said, since the changes (unsupportedoperationexception) was reverted then it will not work.