hunk.code_window:                 .map(pageAction -> {
                       LayoutActionUpdateDTO layoutActionUpdateDTO = new LayoutActionUpdateDTO();
                       layoutActionUpdateDTO.setId(pageAction.getId());
                       layoutActionUpdateDTO.setName(pageAction.getName());
                       layoutActionUpdateDTO.setExecuteOnLoad(pageAction.getExecuteOnLoad());
                       return layoutActionUpdateDTO;
                   })
                   .collect(Collectors.toList());
       }
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:                     layoutActionUpdateDTO.setName(pageAction.getValidName());
                       layoutActionUpdateDTO.setCollectionId(pageAction.getCollectionId());
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/services/NewActionServiceImpl.java
hunk.type: replace
file: package com.appsmith.server.domains;
  
  import com.appsmith.external.models.BaseDomain;
  import lombok.Getter;
  import lombok.NoArgsConstructor;
  import lombok.Setter;
  import lombok.ToString;
  import org.springframework.data.mongodb.core.mapping.Document;
  
  import java.util.List;
  
  @Getter
  @Setter
  @ToString
  @NoArgsConstructor
  @Document
  public class Collection extends BaseDomain {
  
      String name;
  
      String applicationId;
  
      String organizationId;
  
      Boolean shared;
  
      //To save space, when creating/updating collection, only add Action's id field instead of the entire action.
      List<NewAction> actions;
  }
  