private XStream createXStreamWithReplacer(String dollar, String underscore) {
Exception ex;
try {
Constructor constructor = type.getConstructor(new Class[]{
String.class, String.class, int.class});
XmlFriendlyReplacer replacer = (XmlFriendlyReplacer)constructor
.newInstance(new Object[]{dollar, underscore, new Integer(0)});
return new XStream(new XppDriver(replacer));
} catch (NoSuchMethodException e) {
ex = e;
} catch (InstantiationException e) {