static ReaderWriterResult getOrCreateReaderWriterItem(final StepContext stepContext) { ReaderWriterResult result = (ReaderWriterResult) stepContext.getPersistentUserData(); if (result == null) { result = new ReaderWriterResult(); stepContext.setPersistentUserData(result); } return result; }
static ReaderWriterResult getReaderWriterItem(final StepContext stepContext) { return (ReaderWriterResult) stepContext.getPersistentUserData(); }