privileges.addContent(new Element("operation")
.setAttribute("name", "featured"));
if (isTemplate == MetadataType.METADATA) {
// Get the Metadata uuid if it's not a template.
uuid = dm.extractUUID(schema, md.get(index));
} else if (isTemplate== MetadataType.SUB_TEMPLATE) {
// Get subtemplate uuid if defined in @uuid at root
uuid = md.get(index).getAttributeValue("uuid");
}
validate = Util.getParam(params, Params.VALIDATE, "off")