mappingFileKey = new StreamFactoryKey(jobContext, streamMapping);
final StreamFactory streamFactory = getStreamFactory(streamFactoryLookup, mappingFileKey, mappingProperties);
final InputStream inputStream = getInputStream(resource, false);
final Reader inputReader = charset == null ? new InputStreamReader(inputStream) :
new InputStreamReader(inputStream, charset);
beanReader = streamFactory.createReader(streamName, new BufferedReader(inputReader), LocaleUtil.parseLocale(locale));
if (errorHandler != null) {
beanReader.setErrorHandler((BeanReaderErrorHandler) errorHandler.newInstance());
}
if (startRowNumber > 1) {