MethodBuilder mb = cb.newMethodBuilder(Modifier.PUBLIC,
ClassName.ResultSet, "execute");
mb.addThrownException(ClassName.StandardException);
// put a 'throwIfClosed("execute");' statement into the execute method.
mb.pushThis(); // instance
mb.push("execute");
mb.callMethod(VMOpcode.INVOKEVIRTUAL, ClassName.BaseActivation, "throwIfClosed", "void", 1);
// call this.startExecution(), so the parent class can know an execution
// has begun.