code: public static SSHService getFromCache(SessionResource<Map<String, SSHConnection>> sessionResource, String sessionId) {
          Session savedSession = CacheUtils.getSshSession(sessionResource, sessionId);
          if (savedSession != null && savedSession.isConnected()) {
              Channel savedChannel = CacheUtils.getSshChannel(sessionResource, sessionId);
              return new SSHServiceImpl(savedSession, savedChannel);
          }
  
          return null;
      }
docs: Get an opened SSH session from cache (Operation Orchestration session).
  
  @param sessionResource The session resource.
  @return the SSH service