BeanShell2 modified for TaskAutomation