final ElementStyleSheet sourceStyle = element.getStyle();
for (int i = 0; i < definedStyleKeys.length; i++)
{
// copy all, even the inherited styles, as we do not add the element/band to the real parent. All we do
// is virtual ..
final StyleKey key = definedStyleKeys[i];
targetStyle.setStyleProperty(key, sourceStyle.getStyleProperty(key));
}
final String[] attrNs = element.getAttributeNamespaces();
for (int i = 0; i < attrNs.length; i++)