final char separatorChar = getChar(params.getSeparatorChar(), CsvConfiguration.DEFAULT_SEPARATOR_CHAR);
final char quoteChar = getChar(params.getQuoteChar(), CsvConfiguration.DEFAULT_QUOTE_CHAR);
final char escapeChar = getChar(params.getEscapeChar(), CsvConfiguration.DEFAULT_ESCAPE_CHAR);
final boolean failOnInconsistentRowLength = getBoolean(params.getFailOnInconsistentRowLength(), false);
final boolean multilineValues = getBoolean(params.getMultilineValues(), true);
final CsvConfiguration configuration = new CsvConfiguration(columnNameLineNumber, encoding, separatorChar,
quoteChar, escapeChar, failOnInconsistentRowLength, multilineValues);
return new CsvDataContext(resource, configuration);
}