private void addShapeToGraphicsContext(
     GraphicsContext graphics,
     Object parentGroup,
     String identifier,
     Coordinate coordinate,
     ShapeStyle style) {
   int vertexSize = getStyleService().getPointSymbolizerShapeAndSize().getSize();
   int halfVertexSize = vertexSize / 2;
   switch (styleService.getPointSymbolizerShapeAndSize().getShape()) {
     case SQUARE:
       Bbox rectangle =
           new Bbox(
               coordinate.getX() - halfVertexSize,
               coordinate.getY() - halfVertexSize,
               vertexSize,
               vertexSize);
       graphics.drawRectangle(parentGroup, identifier, rectangle, style);
       break;
     case CIRCLE:
       graphics.drawCircle(parentGroup, identifier, coordinate, vertexSize, style);
       break;
   }
 }