presto-password-authenticators/src/main/java/io/prestosql/plugin/password/LdapAuthenticator.java/LdapAuthenticator/replaceUser
class LdapAuthenticator:    private static String replaceUser(String pattern, String user)
    {
        return pattern.replaceAll("\\$\\{USER}", user);
    }