Program: 25184
Project: 25184
Buggy source:
@Override public synchronized void start(){
  super.start();
  sessionExpiryThread=Executors.newSingleThreadScheduledExecutor(runnable -> new Thread(runnable,"String_Node_Str"));
  int sessionExpiryInterval=getSessionExpiryInterval();
  sessionExpiryThread.scheduleWithFixedDelay(sessionExpiryRunnable,sessionExpiryInterval,sessionExpiryInterval,TimeUnit.SECONDS);
  if (restorableSessions == null || restorableSessions.size() <= 0) {
    log.info("String_Node_Str");
    return;
  }
  for (  LensSessionImpl.LensSessionPersistInfo persistInfo : restorableSessions) {
    try {
      LensSessionHandle sessionHandle=persistInfo.getSessionHandle();
      restoreSession(sessionHandle,persistInfo.getUsername(),persistInfo.getPassword());
      LensSessionImpl session=getSession(sessionHandle);
      session.getLensSessionPersistInfo().setLastAccessTime(persistInfo.getLastAccessTime());
      session.getLensSessionPersistInfo().setConfig(persistInfo.getConfig());
      session.getLensSessionPersistInfo().setResources(persistInfo.getResources());
      session.setCurrentDatabase(persistInfo.getDatabase());
      session.getLensSessionPersistInfo().setMarkedForClose(persistInfo.isMarkedForClose());
      for (      LensSessionImpl.ResourceEntry resourceEntry : session.getResources()) {
        try {
          addResourceUponRestart(sessionHandle,resourceEntry);
        }
 catch (        Exception e) {
          log.error("String_Node_Str" + session + "String_Node_Str"+ resourceEntry,e);
        }
      }
      try {
        setSessionParametersOnRestore(sessionHandle,session.getConfig());
      }
 catch (      Exception e) {
        log.error("String_Node_Str" + session.getConfig() + "String_Node_Str"+ session,e);
      }
      log.info("String_Node_Str" + persistInfo.getSessionHandle().getPublicId());
      notifyEvent(new SessionRestored(System.currentTimeMillis(),sessionHandle));
    }
 catch (    LensException e) {
      throw new RuntimeException(e);
    }
  }
  log.info("String_Node_Str" + restorableSessions.size() + "String_Node_Str");
}

Fixed version (ground truth):
@Override public synchronized void start(){
  super.start();
  sessionExpiryThread=Executors.newSingleThreadScheduledExecutor(runnable -> new Thread(runnable,"String_Node_Str"));
  int sessionExpiryInterval=getSessionExpiryInterval();
  sessionExpiryThread.scheduleWithFixedDelay(sessionExpiryRunnable,sessionExpiryInterval,sessionExpiryInterval,TimeUnit.SECONDS);
  if (restorableSessions == null || restorableSessions.size() <= 0) {
    log.info("String_Node_Str");
    return;
  }
  for (  LensSessionImpl.LensSessionPersistInfo persistInfo : restorableSessions) {
    try {
      LensSessionHandle sessionHandle=persistInfo.getSessionHandle();
      restoreSession(sessionHandle,persistInfo.getUsername(),persistInfo.getPassword(),persistInfo.getConfig());
      LensSessionImpl session=getSession(sessionHandle);
      session.getLensSessionPersistInfo().setLastAccessTime(persistInfo.getLastAccessTime());
      session.getLensSessionPersistInfo().setConfig(persistInfo.getConfig());
      session.getLensSessionPersistInfo().setResources(persistInfo.getResources());
      session.setCurrentDatabase(persistInfo.getDatabase());
      session.getLensSessionPersistInfo().setMarkedForClose(persistInfo.isMarkedForClose());
      for (      LensSessionImpl.ResourceEntry resourceEntry : session.getResources()) {
        try {
          addResourceUponRestart(sessionHandle,resourceEntry);
        }
 catch (        Exception e) {
          log.error("String_Node_Str" + session + "String_Node_Str"+ resourceEntry,e);
        }
      }
      try {
        setSessionParametersOnRestore(sessionHandle,session.getConfig());
      }
 catch (      Exception e) {
        log.error("String_Node_Str" + session.getConfig() + "String_Node_Str"+ session,e);
      }
      log.info("String_Node_Str" + persistInfo.getSessionHandle().getPublicId());
      notifyEvent(new SessionRestored(System.currentTimeMillis(),sessionHandle));
    }
 catch (    LensException e) {
      throw new RuntimeException(e);
    }
  }
  log.info("String_Node_Str" + restorableSessions.size() + "String_Node_Str");
}