presto-hive/src/main/java/io/prestosql/plugin/hive/s3select/PrestoS3ClientFactory.java/PrestoS3ClientFactory/getCustomAWSCredentialsProvider
class PrestoS3ClientFactory:    private static AWSCredentialsProvider getCustomAWSCredentialsProvider(Configuration conf, String providerClass)
    {
        try {
            return conf.getClassByName(providerClass)
                    .asSubclass(AWSCredentialsProvider.class)
                    .getConstructor(URI.class, Configuration.class)
                    .newInstance(null, conf);
        }
        catch (ReflectiveOperationException e) {
            throw new RuntimeException(format("Error creating an instance of %s", providerClass), e);
        }
    }