class VitamSession {

    public void setRequestId(String newRequestId) {
        checkCallingThread();
        final Object oldRequestId = MDC.get(GlobalDataRest.X_REQUEST_ID);
        if (oldRequestId != requestId) {
            // KWA TODO: replace the check by thing like StringUtils.checkNullOrEmpty(toto)
            LOGGER.warn(
                "Caution : inconsistency detected between content of the VitamSession (requestId:{}) and the Logging MDC (requestId:{})",
                oldRequestId, requestId);
        }
        requestId = newRequestId;
        MDC.put(GlobalDataRest.X_REQUEST_ID, newRequestId);
    }

    public  VitamSession(VitamThreadFactory.VitamThread owningThread);

}