Method Method(string, string)
Apache Camel's method(ref, "name"): a registry bean's method as an expression or a condition, for
Filter, When, Validate, SetBody, Split and every other expression slot.
.Filter(Method("#loyalty", "IsGold(${header.name})")) is the typed form of
${bean:loyalty.IsGold(header.name)}: the same bean, binding and resolution. In a condition a method may
return Task<bool>, which the engine awaits; in a value position the call is synchronous.
public static IPredicateExpression Method(string reference, string methodSpec)