Utility classes to help with sandboxing Rhino contexts