public void setBundlePriority(String bundleName, int priority) {
Properties metadataProperties = getPropertiesWithoutResolvingRecursively(null, bundleName);
if (priority > 999) { throw new AssertException(
"Bundle priorities can not be higher than 999. The smaller the number, the higher the priority."); }
NumberFormat formatter = new DecimalFormat("000");
metadataProperties.setProperty(METADATA_BUNDLE_PRIORITY_KEY, formatter.format(priority));
saveOrUpdateProperties(metadataProperties, null, bundleName);
}
/**
* Set the key priority within the bundle. The smaller the number, the higher