} else {
throw SupportMessages.MESSAGES.invalidParamsForCellProcessor(name, params);
}
} else if (name.equalsIgnoreCase("Truncate")) {
if (params.length == 1) { //max length
current = previous == null ? new Truncate(Integer.parseInt(params[0])) :
new Truncate(Integer.parseInt(params[0]), (StringCellProcessor) previous);
} else if (params.length == 2) { //max length, suffix
current = previous == null ? new Truncate(Integer.parseInt(params[0]), params[1]) :
new Truncate(Integer.parseInt(params[0]), params[1], (StringCellProcessor) previous);
} else {
throw SupportMessages.MESSAGES.invalidParamsForCellProcessor(name, params);
}
} else if (name.equalsIgnoreCase("Trim")) {
if (params.length == 0) {