int matchCount = 0;
currentMatch.matchedParamCount = 0;
currentMatch.convertedSuppliedTypes = new Class[desiredParamTypes.length];
TypeMarshaller marshaller = TypeMarshallingContext.getTypeMarshaller();
for (int i = 0; i < desiredParamTypes.length; i++)
{
Object param = parameters.get(i);
// consider null param to match
if (param != null)
{
Object obj = null;
Class objClass = null;
if (marshaller != null)
{
try
{
obj = marshaller.convert(param, desiredParamTypes[i]);
}
catch (MessageException ex)
{
currentMatch.paramTypeConversionFailure = ex;
break;