@@ -62,20 +62,20 @@ private void updateRegistries() {
6262 context .turnOffAuthorisationSystem ();
6363
6464 // Load updates to Bitstream formats registries (if any)
65- List <String > RegistryMetadataFiles =
66- MetadataImporter .getAllRegistryFiles (MetadataImporter .REGISTRY_METADATA_PROPERTY );
67- for (String bitstreamFormat : RegistryMetadataFiles ) {
65+ List <String > registryBitstreamFormatFiles =
66+ MetadataImporter .getAllRegistryFiles (MetadataImporter .REGISTRY_BITSTREAM_FORMAT_PROPERTY );
67+ for (String bitstreamFormat : registryBitstreamFormatFiles ) {
6868 log .info ("Updating Bitstream Format Registry based on {}" , bitstreamFormat );
6969 RegistryLoader .loadBitstreamFormats (context , bitstreamFormat );
7070 }
7171
7272 // Load updates to Metadata schema registries (if any)
73- List <String > RegistryBitstreamFormatFiles =
74- MetadataImporter .getAllRegistryFiles (MetadataImporter .REGISTRY_BITSTREAM_FORMAT_PROPERTY );
73+ List <String > registryMetadataFiles =
74+ MetadataImporter .getAllRegistryFiles (MetadataImporter .REGISTRY_METADATA_PROPERTY );
7575 log .info ("Updating Metadata Registries based on metadata type configs in {}" , MetadataImporter .BASE );
76- for (String namespaceFile : RegistryBitstreamFormatFiles ) {
77- log .info ("Reading {}" , namespaceFile );
78- MetadataImporter .loadRegistry (namespaceFile , true );
76+ for (String metadataFile : registryMetadataFiles ) {
77+ log .info ("Reading {}" , metadataFile );
78+ MetadataImporter .loadRegistry (metadataFile , true );
7979 }
8080
8181 String workflowTypes = "workflow-types.xml" ;
0 commit comments