return result;
}
private void createConfiguration(TransformerHandler handler,
FontRecord[] fontRecords) throws SAXException, UnsupportedEncodingException {
AttributesImpl attrs = new AttributesImpl();
handler.startDocument();
handler.startElement("", "configuration", "configuration", attrs);
handler.startElement("", "fonts", "fonts", attrs);
for (int i = 0; i < fontRecords.length; i++) {
FontRecord nextRecord = fontRecords[i];
attrs.clear();
String metricsFile = URLDecoder.decode(nextRecord.getMetricsLocation().toString(), "utf-8");
attrs.addAttribute("", "metrics-file", "metrics-file", "CDATA", metricsFile);
attrs.addAttribute("", "kerning", "kerning", "CDATA", "yes");
attrs.addAttribute("", "embed-file", "embed-file", "CDATA",
nextRecord.getFontLocation().getPath());
handler.startElement("", "font", "font", attrs);
writeTriplets(handler, nextRecord.getFontTriplets());
handler.endElement("", "font", "font");
}