TemplateProcessor tp = DataProviderServices.lookup().getTemplateProcessor();
tp.processTemplate(html, cp);
List<Command> commandList = cp.getSuccessfulCommands();
// Get the data providers used by the commands.
Dashboard dashboard = DashboardHandler.lookup().getCurrentDashboard();
Set<DataProvider> dataProviders = dashboard.getDataProviders();
for (DataProvider dataProvider : dataProviders) {
DataProperty[] dataProperties = dataProvider.getDataSet().getProperties();
for (int i = 0; i < dataProperties.length; i++) {
DataProperty dataProperty = dataProperties[i];
for (Command command : commandList) {