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: <?xml version="1.0" encoding="UTF-8"?>
  
  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      <parent>
          <groupId>com.appsmith</groupId>
          <artifactId>appsmith-plugins</artifactId>
          <version>1.0-SNAPSHOT</version>
      </parent>
  
      <modelVersion>4.0.0</modelVersion>
      <groupId>com.external.plugins</groupId>
      <artifactId>mssqlPlugin</artifactId>
      <version>1.0-SNAPSHOT</version>
  
      <name>mssqlPlugin</name>
  
      <properties>
          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
          <java.version>11</java.version>
          <maven.compiler.source>${java.version}</maven.compiler.source>
          <maven.compiler.target>${java.version}</maven.compiler.target>
          <plugin.id>mssql-plugin</plugin.id>
          <plugin.class>com.external.plugins.MssqlPlugin</plugin.class>
          <plugin.version>1.0-SNAPSHOT</plugin.version>
          <plugin.provider>tech@appsmith.com</plugin.provider>
          <plugin.dependencies/>
      </properties>
  
      <dependencies>
  
          <dependency>
              <groupId>com.microsoft.sqlserver</groupId>
              <artifactId>mssql-jdbc</artifactId>
              <version>8.4.1.jre11</version>
          </dependency>
  
          <!-- Test Dependencies -->
          <dependency>
              <groupId>org.testcontainers</groupId>
              <artifactId>testcontainers</artifactId>
              <version>1.15.0-rc2</version>
              <scope>test</scope>
          </dependency>
          <dependency>
              <groupId>org.testcontainers</groupId>
              <artifactId>mssqlserver</artifactId>
              <version>1.15.0-rc2</version>
              <scope>test</scope>
          </dependency>
  
      </dependencies>
  
      <build>
          <plugins>
              <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-shade-plugin</artifactId>
                  <version>3.2.4</version>
                  <executions>
                      <execution>
                          <id>shade-plugin-jar</id>
                          <phase>package</phase>
                          <goals>
                              <goal>shade</goal>
                          </goals>
                          <configuration>
                              <minimizeJar>false</minimizeJar>
                              <transformers>
                                  <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                      <manifestEntries>
                                          <Plugin-Id>${plugin.id}</Plugin-Id>
                                          <Plugin-Class>${plugin.class}</Plugin-Class>
                                          <Plugin-Version>${plugin.version}</Plugin-Version>
                                          <Plugin-Provider>${plugin.provider}</Plugin-Provider>
                                      </manifestEntries>
                                  </transformer>
                              </transformers>
                              <filters>
                                  <filter>
                                      <artifact>*:*</artifact>
                                      <excludes>
                                          <exclude>META-INF/*.SF</exclude>
                                          <exclude>META-INF/*.DSA</exclude>
                                          <exclude>META-INF/*.RSA</exclude>
                                      </excludes>
                                  </filter>
                              </filters>
                          </configuration>
                      </execution>
                  </executions>
              </plugin>
              <plugin>
                  <artifactId>maven-dependency-plugin</artifactId>
                  <executions>
                      <execution>
                          <id>copy-dependencies</id>
                          <phase>package</phase>
                          <goals>
                              <goal>copy-dependencies</goal>
                          </goals>
                          <configuration>
                              <includeScope>runtime</includeScope>
                              <outputDirectory>${project.build.directory}/lib</outputDirectory>
                          </configuration>
                      </execution>
                  </executions>
              </plugin>
          </plugins>
      </build>
  
  </project>
  