code: public static void removeSshSession(GlobalSessionObject<Map<String, SSHConnection>> sessionParam, String sessionId) {
          if (sessionParam != null) {
              SessionResource<Map<String, SSHConnection>> resource = sessionParam.getResource();
              if (resource != null) {
                  Map<String, SSHConnection> tempMap = resource.get();
                  if (tempMap != null) {
                      tempMap.remove(sessionId);
                  }
              }
          }
      }
docs: Remove the SSH session (and associated channel if any) from the cache.
  
  @param sessionParam The cache.
  @param sessionId    The key to the session in the cache map.