hunk.code_window:         this.organizationRepository = organizationRepository;
           this.userOrganizationService = userOrganizationService;
           this.roleGraph = roleGraph;
           this.configService = configService;
           this.commonConfig = commonConfig;
           this.emailConfig = emailConfig;
           this.userChangedHandler = userChangedHandler;
           this.encryptionService = encryptionService;
  
hunk.labels: keep keep keep replace keep keep keep keep
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/services/UserServiceImpl.java
hunk.type: replace
file: import RadioComponent from "components/ads/Radio";
  import React, { useEffect, useState } from "react";
  import { WrappedFieldInputProps } from "redux-form";
  
  export type RadioGroupWrapperProps = {
    placeholder: string;
    input: WrappedFieldInputProps;
    options: Array<{ value: string; label: string }>;
    className?: string;
    columns?: number;
    rows?: number;
  };
  
  function RadioGroupWrapper(props: RadioGroupWrapperProps) {
    const selectedValueHandler = () => {
      if (
        props.input &&
        props.input.value &&
        Object.keys(props.input.value).length > 0
      ) {
        return props.input.value.value;
      } else if (props.input && typeof props.input.value === "string") {
        return props.input.value;
      } else if (props.placeholder) {
        return props.placeholder;
      }
    };
    const [selectedOption, setSelectedOption] = useState<string>(
      selectedValueHandler(),
    );
    const onSelectHandler = (value: string) => {
      props.input.onChange({ value: value });
    };
  
    useEffect(() => {
      setSelectedOption(selectedValueHandler());
    }, [props.input.value, props.placeholder]);
  
    return (
      <RadioComponent
        className={props.className}
        columns={props.columns}
        defaultValue={selectedOption}
        onSelect={(value: string) => onSelectHandler(value)}
        options={props.options}
        rows={props.rows}
      />
    );
  }
  
  export default RadioGroupWrapper;
  