hunk.code_window:     const pageId = new URLSearchParams(params).get("importTo");
       const page = pages.find(page => page.pageId === pageId);
       if (pageId) {
         const newQueryName = createNewQueryName(actions, pageId);
         this.props.createAction({
  
hunk.labels: keep replace keep keep keep keep
hunk.file_path: app/client/src/pages/Editor/QueryEditor/QueryHomeScreen.tsx
hunk.type: replace
file: package com.appsmith.server.repositories;
  
  import com.appsmith.server.acl.AclPermission;
  import com.appsmith.server.domains.Application;
  import com.mongodb.client.result.UpdateResult;
  import reactor.core.publisher.Flux;
  import reactor.core.publisher.Mono;
  
  import java.util.Set;
  
  public interface CustomApplicationRepository extends AppsmithRepository<Application> {
  
      Mono<Application> findByIdAndOrganizationId(String id, String orgId, AclPermission permission);
  
      Mono<Application> findByName(String name, AclPermission permission);
  
      Flux<Application> findByOrganizationId(String orgId, AclPermission permission);
  
      Flux<Application> findByMultipleOrganizationIds(Set<String> orgIds, AclPermission permission);
  
      Flux<Application> findByClonedFromApplicationId(String applicationId, AclPermission permission);
  
      Mono<UpdateResult> addPageToApplication(String applicationId, String pageId, boolean isDefault);
  
      Mono<UpdateResult> setDefaultPage(String applicationId, String pageId);
  
  }
  