Object result = null;
if (factoryContext instanceof InvokeDispatchContext)
{
InvokeDispatchContext idc = (InvokeDispatchContext) factoryContext;
result = idc.invoke(method, getParameterValues(valueContext, factoryContext), getParameterTypes(valueContext, factoryContext));
}
else
{
throw new IllegalArgumentException(
"Cannot use property attribute, context is not InvokeDispatchContext: " + factoryContext +