private MRReader initFromEvent(InputDataInformationEvent event) throws IOException {
Preconditions.checkState(event != null, "Event must be specified");
LOG.info("Initializing Reader: " + eventCount.get());
MRSplitProto splitProto = MRSplitProto.parseFrom(ByteString.copyFrom(event.getUserPayload()));
Object split = null;
MRReader reader = null;
JobConf localJobConf = new JobConf(jobConf);
if (useNewApi) {
split = MRInputUtils.getNewSplitDetailsFromEvent(splitProto, localJobConf);
reader = new MRReaderMapReduce(localJobConf, (org.apache.hadoop.mapreduce.InputSplit) split,
getContext().getCounters(), inputRecordCounter, getContext().getApplicationId()