The somAddDynamicMethod method adds a new dynamic instance method to the receiving class. This involves recording the method's ID, descriptor, method procedure (specified by method), and apply stub in the receiving class's method data.
The arguments to this method should be non-null and obey the requirements expressed below. This is the responsibility of the implementor of a class, who in general has no knowledge of whether clients of this class will require use of the applyStub argument.