private static String resolveAssociationFeature(String featureType) { if (associations.containsKey(featureType)) { AssociatedFeature associate = associations.get(featureType); return associate.getAssociatedFeature(); } throw new UnsupportedOperationException( featureType + " is not supported for non-spatial feature query."); }
private FilterDocument createAssociatedFeatureFilter(String featureType, String identifier) { if (associations.containsKey(featureType)) { AssociatedFeature associate = associations.get(featureType); FilterDocument doc = createFilterByValueReference( "wfs:valueOf(*/*/" + associate.getAssociatedFeatureElement() + ")/*/gml:identifier", identifier); return doc; } return null; }