public Object read(Object request, Map kvp, Map rawKvp) throws Exception {
// make sure we get the right accepts versions param -> workaround for GEOS-1719
if(rawKvp.containsKey("acceptVersions")) {
AcceptVersionsKvpParser avp = new AcceptVersionsKvpParser();
AcceptVersionsType avt = (AcceptVersionsType) avp.parse((String) rawKvp.get("acceptVersions"));
kvp.put("acceptVersions", avt);
}
request = super.read(request, kvp, rawKvp);
// set the version attribute on the request
if (kvp.containsKey("version")) {
AcceptVersionsType acceptVersions = Ows11Factory.eINSTANCE.createAcceptVersionsType();
acceptVersions.getVersion().add(kvp.get("version"));
GetCapabilitiesType getCapabilities = (GetCapabilitiesType) request;
getCapabilities.setAcceptVersions(acceptVersions);
}