public void saveSessionBackupFromResult(final BackupResult backupResult) {
   final byte[] data = backupResult.getData();
   if (data != null) {
     final String key = _sessionIdFormat.createBackupKey(_session.getId());
     _memcached.set(
         key, toMemcachedExpiration(_session.getMemcachedExpirationTimeToSet()), data);
   } else {
     _log.warn(
         "No data set for backupResultStatus "
             + backupResult.getStatus()
             + " for sessionId "
             + _session.getIdInternal()
             + ", skipping backup"
             + " of non-sticky session in secondary memcached.");
   }
 }
 public void saveSessionBackup(
     @Nonnull final MemcachedBackupSession session, @Nonnull final String key)
     throws InterruptedException {
   try {
     final byte[] data = _manager.serialize(session);
     final Future<Boolean> backupResult =
         _memcached.set(
             key, toMemcachedExpiration(session.getMemcachedExpirationTimeToSet()), data);
     if (!backupResult.get().booleanValue()) {
       _log.warn(
           "Update for secondary backup of session "
               + session.getIdInternal()
               + " (after unsuccessful ping) did not return sucess.");
     }
   } catch (final ExecutionException e) {
     _log.warn(
         "An exception occurred when trying to update secondary session backup for "
             + session.getIdInternal(),
         e);
   }
 }