LPS-31936 Use beanshell and add Shuyang's permgen fix