} else {
raw.put("startIndex", Integer.toString(startIndex));
raw.put("maxfeatures", Integer.toString(maxFeatures));
}
GetMapKvpRequestReader reader = new GetMapKvpRequestReader(getWMS());
reader.setHttpRequest(RESTUtils.getServletRequest(request));
// parse into request object
raw = KvpUtils.normalize(raw);
KvpMap kvp = new KvpMap(raw);
KvpUtils.parse(kvp);
final GetMapRequest getMapRequest = (GetMapRequest) reader.read(
(GetMapRequest) reader.createRequest(), kvp, raw);
getMapRequest.setBaseUrl(RESTUtils.getBaseURL(request));
// delegate to wms reflector
final GetMapResponse getMapResponse = webMapService
.reflect(getMapRequest);