Shape shape = shapeNode.getShape();
ShapePainter painter;
if (markerPainter != null) {
if (fillAndStroke != null) {
CompositeShapePainter cp = new CompositeShapePainter(shape);
cp.addShapePainter(fillAndStroke);
cp.addShapePainter(markerPainter);
painter = cp;
} else {
painter = markerPainter;
}
} else {