// property get on the method itself
try {
Method gwtOnLoadMethod =
getClass().getMethod("gwtOnLoad", new Class[]{IDispatch.class});
MethodAdaptor methodAdaptor = new MethodAdaptor(gwtOnLoadMethod);
IDispatchImpl funcObj = new MethodDispatch(null, methodAdaptor);
IDispatch disp = new IDispatch(funcObj.getAddress());
disp.AddRef();
return new Variant(disp);
} catch (Exception e) {
// just return VT_EMPTY
return new Variant();