File metadataDir = new File(file, "metadata");
File[] xmlFiles = metadataDir.listFiles();
if (xmlFiles == null || xmlFiles.length < 1) {
throw new BadFormatEx(
"Missing XML document in metadata folder " + file.getName() + "/metadata in MEF file "
+ mefFile.getName() + ".");
}
// Handle feature catalog