/** * This method will be used to add a new property * * @param key * @return properties value */ public SessionParams addProperty(String key, String value) throws InvalidConfigurationException { boolean isValidConf = validateKeyValue(key, value); if (isValidConf) { if (key.equals(CarbonLoadOptionConstants.CARBON_OPTIONS_BAD_RECORDS_ACTION)) { value = value.toUpperCase(); } LOGGER.info( "The key " + key + " with value " + value + " added in the session param"); sProps.put(key, value); } return this; }