class DotByTildaEscapeUtil {

    public String toDotQualifiedString(String... tokens){
        if(tokens == null || tokens.length == 0) return null;
        StringBuilder builder = new StringBuilder();
        for (String token : tokens) {
            if(builder.length() != 0){
                builder.append(DELIMITER_CHARACTER);
            }
            builder.append(escapeDot(token));
        }
        return builder.toString();
    }

}