private Style createNamedStyle(VectorLayer layer, VectorLayerRasterizingInfo vectorLayerRasterizingInfo)
throws GeomajasException {
Style style = styleBuilder.createStyle();
String typeName = layer.getLayerInfo().getFeatureInfo().getDataSourceName();
FeatureInfo featureInfo = layer.getLayerInfo().getFeatureInfo();
LayerType layerType = layer.getLayerInfo().getLayerType();
if (vectorLayerRasterizingInfo.isPaintGeometries()) {
// apply the normal styles
List<Rule> rules = new ArrayList<Rule>();
for (FeatureStyleInfo featureStyle : vectorLayerRasterizingInfo.getStyle().getFeatureStyles()) {