private RetryMode profile() {
        BasicProfile profile = configFileLoader.getProfile();
        if (profile == null) {
            return null;
        }
        String val = profile.getPropertyValue(PROFILE_PROPERTY);

        return RetryMode.fromName(val);
    }
@return the resolved retry mode. If not found, {@link RetryMode#LEGACY} will be returned
aws-java-sdk-core/src/main/java/com/amazonaws/retry/internal/RetryModeResolver.java