class CentroidProcess implements VectorProcess {

    @DescribeResult(name = "result", description = "Centroids of input features")
    public SimpleFeatureCollection execute(
            @DescribeParameter(name = "features", description = "Input feature collection") SimpleFeatureCollection features)
            throws ProcessException {
        return DataUtilities.simple(new CentroidFeatureCollection(features));
    }

}