src/main/java/org/jboss/util/Strings.java
/**
    * Substitute sub-strings in side of a string.
    *
    * @param string     String to subst mappings in
    * @param map        Map of from->to strings
    * @param beginToken Beginning token
    * @param endToken   Ending token
    * @return           Substituted string
    */
Substitute sub-strings in side of a string.
Substitute sub - strings in side of a string .
public static String subst(final String string, final Map map,
      final String beginToken, final String endToken)
   {
      return subst(new StringBuffer(), string, map, beginToken, endToken);
   }
public static String subst ( final String string , final Map map , final String beginToken , final String endToken ) { return subst ( new StringBuffer ( ) , string , map , beginToken , endToken ) ; }
Substitute sub-strings in side of a string.
Substitute sub - strings in side of a string .