this.params = params;
}
public String buildTemplate() {
String templateStr;
IDataStoreDecorator dataStoreDecorator;
logger.debug("IN");
try {
templateStr = getTemplateFileContent();
logger.debug("Base template: " + templateStr);
Assert.assertNotNull(templateStr, "base template cannot be null");
dataStoreDecorator = new DisplaySizeDecorator();
dataStoreDecorator.decorate(dataStore);
if(getParamValue("pagination", "false").equalsIgnoreCase("true")) {
templateStr = replaceParam(templateStr, "pagination", "isIgnorePagination=\"true\"");
} else {
templateStr = replaceParam(templateStr, "pagination", "");