private static final XPathParser META_XPATH = new XPathParser(
"meta", "urn:oasis:names:tc:opendocument:xmlns:meta:1.0");
private static ContentHandler getMeta(
ContentHandler ch, Metadata md, String name, String element) {
Matcher matcher = new CompositeMatcher(
META_XPATH.parse("//meta:" + element),
META_XPATH.parse("//meta:" + element + "//text()"));
ContentHandler branch =
new MatchingContentHandler(new MetadataHandler(md, name), matcher);
return new TeeContentHandler(ch, branch);