def METHOD_NAME(self, config_path: str) -> Mapping[str, Any]:
    """
    Used to override the default read_config so that when the new file-based S3 connector processes a config
    in the legacy format, it can be transformed into the new config. This happens in entrypoint before we
    validate the config against the new spec.
    """
    config = super().METHOD_NAME(config_path)
    if not self._is_v4_config(config):
        parsed_legacy_config = SourceS3Spec(**config)
        converted_config = LegacyConfigTransformer.convert(parsed_legacy_config)
        emit_configuration_as_airbyte_control_message(converted_config)
        return converted_config
    return config