private Callback createCallback(Flowlet flowlet, FlowletSpecification flowletSpec) {
if (flowlet instanceof Callback) {
return (Callback) flowlet;
}
final FailurePolicy failurePolicy = flowletSpec.getFailurePolicy();
return new Callback() {
@Override
public void onSuccess(Object input, InputContext inputContext) {
// No-op
}