public ExecutionStatusType run(DropStoredQueryType request) throws WFSException { if (request.getId() == null) { throw new WFSException(request, "No stored query id specified"); } StoredQuery query = storedQueryProvider.getStoredQuery(request.getId()); if (query != null) { storedQueryProvider.removeStoredQuery(query); } else { WFSException exception = new WFSException( request, String.format("Stored query %s does not exist.", request.getId()), ServiceException.INVALID_PARAMETER_VALUE); // CITE tests vagary, the XML uses "id" and KVP uses "STOREDQUERY_ID", the CITE tests // mandate "id" // in all bindings exception.setLocator("id"); throw exception; } Wfs20Factory factory = Wfs20Factory.eINSTANCE; ExecutionStatusType response = factory.createExecutionStatusType(); response.setStatus("OK"); return response; } }