JavaComment comment = jm.newComment();
comment.addLine("Called for invocation of method <code>pName</code> with");
comment.addLine("the parameters given by <code>pParams</code>.");
Parameter name = jm.addParam(String.class, "pName");
Parameter args = jm.addParam(Vector.class, "pParams");
jm.addThrows(Exception.class);
LocalJavaField invoker = jm.newJavaField(pInvoker);
invoker.addLine("getInvoker(", name, ")");
jm.addIf(invoker, " == null");
jm.addThrowNew(IllegalStateException.class,
JavaSource.getQuoted("Unknown method name: "),