public void run() {
while (running) {
try {
TBase call = incoming.take();
if (call instanceof grantResource_args) {
grantResource_args args = (grantResource_args) call;
iface.grantResource(args.handle, args.granted);
} else if (call instanceof revokeResource_args) {
revokeResource_args args = (revokeResource_args) call;
iface.revokeResource(args.handle, args.revoked, args.force);
} else if (call instanceof processDeadNode_args) {