StyleValue bgColor = cellValues.getStyleValue(
StylePropertyDetails.BACKGROUND_COLOR);
if (bgColor == BackgroundColorKeywords.TRANSPARENT) {
for (int i = 0; i < layers.length; i++) {
StyleValues layer = layers[i];
StyleValue layerBgColor = layer.getStyleValue(
StylePropertyDetails.BACKGROUND_COLOR);
StyleValue layerBgImage = layer.getStyleValue(
StylePropertyDetails.BACKGROUND_IMAGE);
if (layerBgImage != BackgroundImageKeywords.NONE) {
// Don't set background color if the layer has an image
// otherwise it couldn't be seen.
break;