public static Object unmarshallFromTemplate(String wmlTemplateString, java.util.HashMap mappings, JAXBContext jc) throws JAXBException { String wmlString = replace(wmlTemplateString, 0, new StringBuilder(), mappings).toString(); log.debug("Results of substitution: " + wmlString); return unmarshalString(wmlString, jc); } etc