// loop through each module in the workspace
for (final ModuleName moduleName : workspaceModuleNames) {
ResourceManager metadataResourceManager = getWorkspace().getResourceManager(moduleName, WorkspaceResource.METADATA_RESOURCE_TYPE);
MetadataStore metadataStore = (MetadataStore)metadataResourceManager.getResourceStore();
if (metadataStore.isWriteable()) {
for (Iterator<WorkspaceResource> it = metadataStore.getResourceIterator(moduleName); it.hasNext(); ) {
WorkspaceResource metadataResource = it.next();
ResourceIdentifier identifier = metadataResource.getIdentifier();
CALFeatureName featureName = (CALFeatureName)identifier.getFeatureName();
Locale locale = LocalizedResourceName.localeOf(identifier.getResourceName());
if (getWorkspace().getMetaModule(featureName.toModuleName()) != null) {