refactor; todo - Stupid Java engine loses WrappedException in ScriptException