hunk.code_window:                     // We expect at least one of the following to be present
                       Object expiresAtResponse = mappedResponse.get(Authentication.EXPIRES_AT);
                       Object expiresInResponse = mappedResponse.get(Authentication.EXPIRES_IN);
                       Instant expiresAt = null;
                       if (expiresAtResponse != null) {
                           expiresAt = Instant.ofEpochSecond(Long.parseLong((String) expiresAtResponse));
                       } else if (expiresInResponse != null) {
  
hunk.labels: keep keep keep keep keep replace keep
hunk.after_edit:                         expiresAt = Instant.ofEpochSecond(Long.parseLong(String.valueOf(expiresAtResponse)));
  
hunk.file_path: app/server/appsmith-plugins/restApiPlugin/src/main/java/com/external/connections/OAuth2ClientCredentials.java
hunk.type: replace
file: package com.appsmith.server.configurations;
  
  import org.pf4j.spring.SpringPluginManager;
  import org.springframework.context.annotation.Bean;
  import org.springframework.context.annotation.Configuration;
  
  @Configuration
  public class PluginConfiguration {
  
      @Bean
      public SpringPluginManager pluginManager() {
          return new SpringPluginManager();
      }
  
  }
  