if (t instanceof RejectedAccessException) {
ScriptApproval.get().accessRejected((RejectedAccessException) t, ApprovalContext.create());
}
return outcome;
}
}, new ProxyWhitelist(new GroovyClassLoaderWhitelist(thread.group.getExecution().getShell().getClassLoader()),CpsWhitelist.get()));
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
throw new AssertionError(e); // Callable doesn't throw anything
}