code: public static String subst(final String string, final Map<?, ?> map,
              final String beginToken, final String endToken)
     {
        return subst(new StringBuffer(), string, map, beginToken, endToken);
     }
docs: 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