open fun invokeMethod(name: String, arg: Any): Any
This method overrides method invocation to create beans for each method name that takes a class argument.