// This will probably have to be changed as part of VBM:2003022702.
Digester digester = new MarinerDigester(new SAXParser());
digester.addObjectCreate("parent", ParentConf.class);
digester.addObjectCreate("parent/enabled", EnabledConf.class);
digester.addSetProperties("parent/enabled", "property", "property");
digester.addSetNext("parent/enabled", "setEnabled");
// Parse the document using the digester.
ByteArrayInputStream stream = new ByteArrayInputStream(
document.getBytes());
InputSource source = new InputSource(stream);