@Override
    NativeSslSession getSessionFromPersistentCache(byte[] sessionId) {
        if (persistentCache != null) {
            byte[] data = persistentCache.getSessionData(sessionId);
            if (data != null) {
                NativeSslSession session = NativeSslSession.newInstance(this, data, null, -1);
                if (session != null && session.isValid()) {
                    cacheSession(session);
                    return session;
                }
            }
        }

        return null;
    }
Applications should not use this method. Instead use {@link
Conscrypt#setServerSessionCache(SSLContext, SSLServerSessionCache)}.
common/src/main/java/org/conscrypt/ServerSessionContext.java