doEchoRequest(request, response);
}
@SuppressWarnings("unchecked")
private void doEchoRequest(HttpServletRequest request, HttpServletResponse response) throws IOException {
Echo echo = new Echo();
echo.path = request.getPathInfo();
echo.params = new HashMap<String, String>();
ObjectMapper mapper = new ObjectMapper();
for ( Map.Entry<String, String[]> entry: (Set<Map.Entry<String, String[]>>) request.getParameterMap().entrySet() ){