}
repositoryPath = PathUtils.replaceEnvVariables(repositoryPath);
// grab metadata
Metadata met = null;
Element metadataRoot = XMLUtils.getFirstElement("metadata",
productTypeElem);
if (metadataRoot != null) {
Hashtable<String, Object> metHash = new Hashtable<String, Object>();
met = new Metadata();
NodeList keyValElems = metadataRoot.getElementsByTagName("keyval");
for (int i = 0; i < keyValElems.getLength(); i++) {
Element keyValElem = (Element) keyValElems.item(i);
String elemName = XMLUtils.read(keyValElem, "key");
List<String> elemValues = XMLUtils.readMany(keyValElem, "val");
metHash.put(elemName, elemValues);
}
met.replaceMetadata(metHash);
}
// grab extractors
List<ExtractorSpec> extractors = null;
Element extractorRoot = XMLUtils.getFirstElement("metExtractors",