hunk.code_window:         return userMono
                   .flatMap(user -> {
                       Set<String> orgIds = user.getOrganizationIds();
                       /*
                        * For all the organization ids present in the user object, fetch all the organization objects
                        * and store in a map for fast access.
                        */
                       Mono<Map<String, Organization>> organizationsMapMono = organizationService
                               .findByIdsIn(orgIds, READ_ORGANIZATIONS)
                               .collectMap(Organization::getId, Function.identity());
                       UserHomepageDTO userHomepageDTO = new UserHomepageDTO();
                       userHomepageDTO.setUser(user);
  
hunk.labels: keep keep keep replace replace replace replace replace replace replace keep keep keep
hunk.after_edit:                     // Collect all the applications as a map with organization id as a key
                       Mono<Map<String, Collection<Application>>> applicationsMapMono = applicationRepository
                               .findByMultipleOrganizationIds(orgIds, READ_APPLICATIONS)
                               .collectMultimap(Application::getOrganizationId, Function.identity());
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ApplicationFetcher.java
hunk.type: replace
file: package com.appsmith.server.repositories;
  
  import com.appsmith.server.acl.AclPermission;
  import com.appsmith.server.domains.Organization;
  import reactor.core.publisher.Flux;
  import reactor.core.publisher.Mono;
  
  import java.util.Set;
  
  public interface CustomOrganizationRepository extends AppsmithRepository<Organization> {
  
      Mono<Organization> findByName(String name, AclPermission aclPermission);
  
      Flux<Organization> findByIdsIn(Set<String> orgIds, AclPermission aclPermission);
  
  }
  