List<ParameterBinding> params = method.getInParameters();
Object[] args = new Object[params.size()];
int idx = 0;
for (ParameterBinding p : params)
{
TypeBinding typeBinding = p.getType();
log
.trace(String
.format(
"Decoding parameter with type %s ref package %s ref class %s ",
typeBinding.getCode(), typeBinding
.getRefPackage(),
typeBinding.getRefClass()));
args[idx++] = typeBinding.decode(dec);
log.trace("Done");
}
try
{
Object[] result = mo.invoke(method, args);