hunk.code_window:                 .flatMap(this::fillSelfReferencingPaths)
                   // Add the vertices and edges to the graph for these executables
                   .flatMap(executable -> {
                       EntityDependencyNode entityDependencyNode = new EntityDependencyNode(
                               executable.getEntityReferenceType(), executable.getValidName(), null, null, executable);
                       explicitUserSetOnLoadExecutables.add(executable.getValidName());
                       return extractAndSetExecutableBindingsInGraphEdges(
                                       entityDependencyNode,
                                       edges,
                                       bindingsFromExecutablesRef,
  
hunk.labels: keep keep keep keep replace replace keep keep keep keep
hunk.after_edit:                             executable.getEntityReferenceType(),
                               executable.getExecutableName(),
                               null,
                               null,
                               executable);
                       explicitUserSetOnLoadExecutables.add(executable.getExecutableName());
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/onload/internal/OnLoadExecutablesUtilCEImpl.java
hunk.type: replace
file: package com.appsmith.server.services.ce;
  
  import com.appsmith.external.models.AuthenticationDTO;
  import com.appsmith.external.models.DatasourceStorage;
  import com.appsmith.external.models.OAuth2;
  import com.appsmith.server.solutions.AuthenticationService;
  import lombok.RequiredArgsConstructor;
  import lombok.extern.slf4j.Slf4j;
  import reactor.core.publisher.Mono;
  
  @Slf4j
  @RequiredArgsConstructor
  public class AuthenticationValidatorCEImpl implements AuthenticationValidatorCE {
  
      private final AuthenticationService authenticationService;
  
      public Mono<DatasourceStorage> validateAuthentication(DatasourceStorage datasourceStorage) {
          if (datasourceStorage.getDatasourceConfiguration() == null
                  || datasourceStorage.getDatasourceConfiguration().getAuthentication() == null) {
              return Mono.just(datasourceStorage);
          }
          AuthenticationDTO authentication =
                  datasourceStorage.getDatasourceConfiguration().getAuthentication();
          return authentication
                  .hasExpired()
                  .filter(expired -> expired)
                  .flatMap(expired -> {
                      if (authentication instanceof OAuth2) {
                          return authenticationService.refreshAuthentication(datasourceStorage);
                      }
                      return Mono.just(datasourceStorage);
                  })
                  .switchIfEmpty(Mono.just(datasourceStorage));
      }
  }
  