code: private void invoke(Method method, Object event, InputContext inputContext) throws Exception {
      if (needContext) {
        method.invoke(flowlet, event, inputContext);
      } else {
        method.invoke(flowlet, event);
      }
    }
docs: Calls the user process method.