try {
q.setNamespace(new URI(typeName.getNamespaceURI()));
} catch (URISyntaxException e) { }
// perform some necessary query adjustments
Query adapted = rd.adaptQuery(q);
// the specification demands that we throw an error if a spatial operator
// is used against a non spatial property
if(q.getFilter() != null) {
rd.verifySpatialFilters(q.getFilter());