class BoundaryLayer extends KujakuLayer {

    private FeatureCollection calculateCenterPoints(@NonNull FeatureCollection featureCollection) {
        ArrayList<Feature> centerPoints = new ArrayList<>();

        List<Feature> featureList = featureCollection.features();
        if (featureList != null) {
            for (Feature feature : featureList) {
                Geometry featureGeometry = feature.geometry();
                if (featureGeometry != null) {
                    Point featurePoint;
                    if (featureGeometry instanceof Point) {
                        featurePoint = (Point) featureGeometry;
                    } else {
                        featurePoint = getCenter(featureGeometry);
                    }

                    centerPoints.add(Feature.fromGeometry(featurePoint, feature.properties()));
                }
            }
        }

        return FeatureCollection.fromFeatures(centerPoints);
    }

      BoundaryLayer(@NonNull KujakuLayer.Builder builder);

}