} catch (IOException ioe) {
featureSource = null;
}
assertNotNull(featureSource);
List<Filter> filterList = new ArrayList<Filter>();
FilterFactory2 ff = new FilterFactoryImplNamespaceAware(
((MappingFeatureSource) featureSource).getMapping().getNamespaces());
Expression property = ff
.property("gsml:geologicHistory/gsml:GeologicEvent/gsml:eventEnvironment/gsml:CGI_TermValue/gsml:value");
Filter filter = ff.like(property, "*mid-crustal*");
filterList.add(filter);
property = ff.property("gsml:purpose");
filter = ff.like(property, "*ypical*");
filterList.add(filter);
Filter andFilter = ff.and(filterList);
FeatureCollection<FeatureType, Feature> filteredResults = featureSource
.getFeatures(andFilter);
FeatureIterator<Feature> iterator = filteredResults.features();