boolean failOnCommit = false;
@Override
public void initialize(OutputCommitterContext context) throws Exception {
FailingOutputCommitterConfig config = new
FailingOutputCommitterConfig();
config.fromUserPayload(context.getUserPayload());
failOnCommit = config.failOnCommit;
}