throw new WebServiceSystemException(e);
}
}
protected void sendHeaders(HttpServletResponse conn, HeaderMap responseParams) {
HeaderMapSpec spec = responseParams.getSpec();
for (Map.Entry<String, Object> param : responseParams.entrySet()) {
String paramName = param.getKey();
Object paramValue = param.getValue();
Type paramType = spec.getTypeFor(paramName);
String json = gson.toJson(paramValue, paramType);
if (LogConfig.INFO) logger.info("Response Header:" + paramName + ": " + json);
conn.addHeader(paramName, json);
}
}