Metadata metadata = parse.getData().getParseMeta();
// check in the metadata first : the tika-parser
// might have stored the values there already
for (String mdName : metadata.names()) {
String value = metadata.get(mdName);
// check whether the name is in the list of what we want or if
// specified *
if (metatagset.contains("*") || metatagset.contains(mdName.toLowerCase())) {
LOG.debug("Found meta tag : " + mdName + "\t" + value);