}
public void generate() throws IOException, SAXException, ProcessingException {
consumer.startDocument();
consumer.startElement("", "context", "context", new AttributesImpl());
Context context = ObjectModelHelper.getContext(objectModel);
Enumeration keys = context.getAttributeNames();
while (keys.hasMoreElements()) {
String key = (String) keys.nextElement();
Object value = context.getAttribute(key);
AttributesImpl attrs = new AttributesImpl();
attrs.addAttribute("", "name", "name", "CDATA", key);
consumer.startElement("", "key", "key", attrs);
String str = value.toString();
consumer.characters(str.toCharArray(), 0, str.length());