* @param method a single argument, static method that will be invoked for when PipeFunction.compute() is called
* @return a PipeFunction based on the provided compute method
*/
public static PipeFunction createPipeFunction(final Method method) {
return new PipeFunction() {
final Method m = method;
public Object compute(final Object argument) {
try {
return m.invoke(null, argument);