CoreMessageResources resources = CoreServlet.getServlet().getExtensionStoreResources();
for (ExtensionBundle extensionBundle : extensionBundles.values()) {
for (ExtensionDescriptor descriptor : extensionBundle) {
Collection<String> toRemove = new ArrayList<String>();
for (Iterator itr = resources.keys(); itr.hasNext();) {
String key = (String) itr.next();
if (key.startsWith("application." + descriptor.getId() + ".")) {
toRemove.add(key);
}
}