// see if we can collect any attribute out of the provided layer
Set attributes = new HashSet();
if (mapLayerInfo.getType() == MapLayerInfo.TYPE_VECTOR
|| mapLayerInfo.getType() == MapLayerInfo.TYPE_REMOTE_VECTOR) {
try {
final FeatureType type;
if (mapLayerInfo.getType() == MapLayerInfo.TYPE_VECTOR)
type = mapLayerInfo.getFeature().getFeatureType();
else
type = mapLayerInfo.getRemoteFeatureSource().getSchema();
for (PropertyDescriptor pd : type.getDescriptors()) {
if (pd instanceof AttributeDescriptor) {
attributes.add(pd.getName().getLocalPart());
}
}
} catch (IOException ioe) {