public Object invoke(InvocationRequest invocation) throws Throwable
{
Object request = invocation.getParameter();
// Am expecting a NameBasedInvocation as the parameter
NameBasedInvocation nbInvocation = (NameBasedInvocation) request;
final String methodName = nbInvocation.getMethodName();
Object[] params = nbInvocation.getParameters();
String[] sig = nbInvocation.getSignature();
final Class[] classSig = new Class[sig.length];
for(int x = 0; x < sig.length; x++)
{
Class signature = getPrimitiveType(sig[x]);
if(signature != null)