public void setKeyPriority(String bundleName, String key, 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("00");
metadataProperties.setProperty(key + METADATA_KEY_PRIORITY_POSTFIX, formatter.format(priority));
saveOrUpdateProperties(metadataProperties, null, bundleName);
}
/**
* Remove all bundles from caches to force reload from filesystem