code: public static Object[] findMethodWithListParameters(Object service, String methodName, Object[] args) {
          Method method = null;
          try {
              //try to skip the listing of all the methods by checking for exactly what
              //we want first
              method = service.getClass().getMethod(methodName, ConversionUtils.convertParams(args));
              log.debug("Exact method found (skipping list): {}", methodName);
              return new Object[] { method, args };
          } catch (NoSuchMethodException nsme) {
              log.debug("Method not found using exact parameter types");
          }
          List<Method> methods = ConversionUtils.findMethodsByNameAndNumParams(service, methodName, 1);
          log.debug("Found {} methods", methods.size());
          if (methods.isEmpty()) {
              return new Object[] { null, null };
          } else if (methods.size() > 1) {
              log.debug("Multiple methods found with same name and parameter count; parameter conversion will be attempted in order.");
          }
          ArrayList<Object> argsList = new ArrayList<Object>();
          if (args != null) {
              for (Object element : args) {
                  argsList.add(element);
              }
          }
          args = new Object[] { argsList };
          Object[] params = null;
          for (int i = 0; i < methods.size(); i++) {
              try {
                  method = methods.get(i);
                  params = ConversionUtils.convertParams(args, method.getParameterTypes());
                  if (argsList.size() > 0 && (argsList.get(0) instanceof IConnection) && (!(params[0] instanceof IConnection))) {
                      // Don't convert first IConnection parameter
                      continue;
                  }
                  return new Object[] { method, params };
              } catch (Exception ex) {
                  log.debug("Parameter conversion failed", ex);
              }
          }
          return nullReturn;
      }
docs: Returns (method, params) for the given service or (null, null) if not method was found.
  
  @param service
  Service
  @param methodName
  Method name
  @param args
  Arguments
  @return Method/params pairs