moduleSecurityManager.getBasePermissionSet().grantPermission("com.google.gson.internal", ReflectPermission.class);
moduleSecurityManager.getBasePermissionSet().addAPIClass(java.nio.ByteBuffer.class);
moduleSecurityManager.getBasePermissionSet().addAPIClass(java.nio.IntBuffer.class);
Policy.setPolicy(new ModuleSecurityPolicy());
System.setSecurityManager(moduleSecurityManager);
}