hunk.code_window:                 });
       }
       @Override
       public Mono<Datasource> update(String id, Datasource datasource) {
           if (id == null) {
               return Mono.error(new AppsmithException(AppsmithError.INVALID_PARAMETER, FieldName.ID));
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit:     @Override
       public Mono<Datasource> getValidDatasourceFromActionMono(ActionDTO actionDTO, AclPermission aclPermission) {
           // Global datasource requires us to fetch the datasource from DB.
           if (actionDTO.getDatasource() != null && actionDTO.getDatasource().getId() != null) {
               return this.findById(actionDTO.getDatasource().getId(), aclPermission)
                       .switchIfEmpty(Mono.error(new AppsmithException(AppsmithError.NO_RESOURCE_FOUND,
                               FieldName.DATASOURCE,
                               actionDTO.getDatasource().getId())));
           }
           // This is a nested datasource. Return as is.
           return Mono.justOrEmpty(actionDTO.getDatasource());
       }
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/DatasourceServiceCEImpl.java
hunk.type: add
file: import { ISDCodeOptions } from "constants/ISDCodes_v2";
  
  export const countryToFlag = (dialCode: string) => {
    const country = ISDCodeOptions.find((item) => item.dial_code === dialCode);
    const isoCode = country ? country.code : "";
    return typeof String.fromCodePoint !== "undefined"
      ? isoCode
          .toUpperCase()
          .replace(/./g, (char) =>
            String.fromCodePoint(char.charCodeAt(0) + 127397),
          )
      : isoCode;
  };
  