code: public static void addMsgConnection(final String _sessionId,
                                          final IKey _key)
      {
          if (RegistryManager.getCache().containsKey(_sessionId)) {
              RegistryManager.getCache().get(_sessionId).setConnectionKey(_key);
          }
          RegistryManager.LOG.debug("Added Message Connection for Session: {}", _sessionId);
      }
docs: Adds the msg connection.
  
  @param _sessionId the session ID
  @param _key the key