final GetMapRequest getMapRequest = (GetMapRequest) reader.read(
(GetMapRequest) reader.createRequest(), kvp, raw);
getMapRequest.setBaseUrl(RESTUtils.getBaseURL(request));
// delegate to wms reflector
final WebMap webMap = webMapService.reflect(getMapRequest);
//as per KMLMapOutputFormat.produceMap
Assert.isInstanceOf(XMLTransformerMap.class, webMap);
final XMLTransformerMapResponse respEncoder = new XMLTransformerMapResponse();
// wrap response in a reslet output rep