if (schema instanceof SimpleFeatureType) {
List<Name> allNames = new ArrayList<Name>();
for (PropertyDescriptor pd : schema.getDescriptors()) {
allNames.add(pd.getName());
}
throw new IllegalFilterException("Could not find '" +
attribute + "' in the FeatureType (" + schema.getName() +
"), available attributes are: " + allNames);
} else {
throw new IllegalFilterException("Could not find '" +
attribute + "' in the FeatureType (" + schema.getName() +
")");
}
}
}