+// protected static void initMdcContext(HttpServletRequest httpReq, HttpHeaders headers) {
+//
+// // Auto generate a transaction if we were not provided one.
+// String transId = null;
+// if (headers != null) {
+// // transId = headers.getRequestHeaders().getFirst("X-TransactionId");
+// transId = headers.getFirst("X-TransactionId");
+//
+// if ((transId == null) || (transId.equals(""))) {
+// transId = UUID.randomUUID().toString();
+// }
+// }
+//
+// String fromIp = (httpReq != null) ? httpReq.getRemoteAddr() : "";
+// String fromApp = (headers != null) ? headers.getFirst("X-FromAppId") : "";
+//
+// MdcContext.initialize(transId, SearchDbConstants.SDB_SERVICE_NAME, "", fromApp, fromIp);
+// }
+
+ protected static void initMdcContext ( HttpServletRequest httpReq, HttpHeaders headers) {