Added changes to monitoring to support sessionId in java