code: private static boolean checkParameters(Method method, Object... data)
  	{
  		Parameter[] parameters = method.getParameters();
  		if (ArrayUtils.isEmpty(data) && parameters.length != 0)
  			return false;
  		if (parameters.length != data.length)
  			return false;
  
  		for (int i = 0; i < parameters.length; i++)
  		{
  			Class<?> paramClass = parameters[i].getType();
  			if (data[i] != null)
  			{
  				Class<?> dataClass = data[i].getClass();
  				if (!ClassUtils.isAssignable(dataClass, paramClass, true))
  					return false;
  			}
  		}
  
  		return true;
  	}
docs: Checks if parameters passed match the parameteres required for the {@link Method}.
  
  @param method the method
  @param data the data
  @return true, if successful