Perhaps you want to have a look BeanShell2 fork at http://code.google.com/p/beanshell2