public void addProfile ( Object key , DescriptorRepository repository ) { if ( metadataProfiles . contains ( key ) ) { throw new MetadataException ( "Duplicate profile key. Key '" + key + "' already exists." ) ; } metadataProfiles . put ( key , repository ) ; }
Add a metadata profile .