@DescribeParameter(name = "attribute", description = "Attribute to include in output", collectionType = String.class, min = 0) List<String> attributes,
@DescribeParameter(name = "filter", min = 0, description = "The filter to apply") Filter filter)
throws ProcessException {
// apply filtering if necessary
if (filter != null && !filter.equals(Filter.INCLUDE)) {
features = new FilteringSimpleFeatureCollection(features, filter);
}
// apply retyping if necessary
if (attributes != null && attributes.size() > 0) {
final String[] names = (String[]) attributes.toArray(new String[attributes.size()]);