Here you can find the source of substituteUserConfiguration(String originalContent, Map
private static String substituteUserConfiguration(String originalContent, Map<String, String> paramAnchorTextAndValues)
//package com.java2s; //License from project: Apache License import java.util.Map; import java.util.Map.Entry; public class Main { private static String substituteUserConfiguration(String originalContent, Map<String, String> paramAnchorTextAndValues) { for (Entry<String, String> entry : paramAnchorTextAndValues.entrySet()) { String anchorText = entry.getKey(); String value = entry.getValue(); originalContent = originalContent.replace(anchorText, value); }//w w w. ja v a 2s .c o m return originalContent; } }