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);