statement = XmlUtil.removeEntities(statementString).trim();
if (statement.toLowerCase().startsWith("select")) {
statementType = StatementType.QUERY;
} else {
statementType = StatementType.UPDATE;
updateStatementTemplate = new MVELTemplate(statement);
}
// The input payload can be a List<Map> (result set)and the statement can look
// like "select * from ORDER_DETAIL_SOURCE where ORD_ID = ${ORD_ID} and ORD_CD = ${ORD_CD}",
// where the ${} tokens denote one or more field/column names in the payload List<Map> rows. These