code: public static SymbolizerTypeInfo createSymbolizer(LayerType type, FeatureStyleInfo featureStyle) {
  		SymbolInfo symbol = featureStyle.getSymbol();
  		SymbolizerTypeInfo symbolizer = null;
  		StrokeInfo stroke = createStroke(featureStyle.getStrokeColor(), featureStyle.getStrokeWidth(),
  				featureStyle.getStrokeOpacity(), featureStyle.getDashArray());
  		FillInfo fill = createFill(featureStyle.getFillColor(), featureStyle.getFillOpacity());
  		switch (type) {
  			case GEOMETRY:
  				break;
  			case LINESTRING:
  			case MULTILINESTRING:
  				symbolizer = createLineSymbolizer(stroke);
  					break;
  			case MULTIPOINT:
  			case POINT:
  				GraphicInfo graphic;
  				if (symbol.getCircle() != null) {
  					MarkInfo circle = createMark(WKN_CIRCLE, fill, stroke);
  					graphic = createGraphic(circle, (int) (2 * symbol.getCircle().getR()));
  				} else if (symbol.getRect() != null) {
  					MarkInfo rect = createMark(WKN_RECT, fill, stroke);
  					graphic = createGraphic(rect, (int) symbol.getRect().getH());
  				} else {
  					ExternalGraphicInfo image = createExternalGraphic(symbol.getImage().getHref());
  					graphic = createGraphic(image, symbol.getImage().getHeight());
  				}
  				symbolizer = createPointSymbolizer(graphic);
  				break;
  			case POLYGON:
  			case MULTIPOLYGON:
  				symbolizer = createPolygonSymbolizer(fill, stroke);
  				break;
  			default:
  				throw new IllegalStateException("Unknown layer type " + type);
  		}
  		return symbolizer;
  	}
docs: Create a symbolizer from a feature style.
  
  @param type the layer type
  @param featureStyle the style
  @return the symbolizer