final AbstractReportDefinition reportDefinition = renderContext.getReportDefinition();
final StyleKey[] keys = StyleKey.getDefinedStyleKeys();
for (int i = 0; i < visualElements.length; i++)
{
final InstanceID visualElement = visualElements[i];
final ReportElement element = ModelUtility.findElementById(reportDefinition, visualElement);
final ElementStyleSheet styleSheet = element.getStyle();
final Object[] properties = currentStyle[i];
for (int j = 0; j < keys.length; j++)
{
final StyleKey key = keys[j];
styleSheet.setStyleProperty(key, properties[key.identifier]);