code: public static FunctorWithParameter instanciateFunctorWithParameterAsAMethodWrapper(final Object instance, final Method method)
  			throws Exception
  	{
  		if (null == method)
  		{
  			throw new NullPointerException("Method is null");
  		}
  		if (method.getParameterTypes().length != 1 || !Map.class.equals(method.getParameterTypes()[0]))
  		{
  			throw new InvalidParameterException("Method must accept a Map");
  		}
  
  		return new FunctorWithParameter()
  		{
  			public Object process(Map<String, Object> parameters) throws Exception
  			{
  				Object[] _paramList =
  				{
  					parameters
  				};
  				return method.invoke(instance, _paramList);
  			}
  		};
  	}
docs: Create a functor with parameter, wrapping a call to another method.
  
  @param instance
  null is allowed, for wrapping static method calls
  @param method
  the method to call.
  @return a Functor with parameter that call the specified method on the specified instance.
  @throws Exception if there is a problem to deal with.