* @throws SettingsException If anything goes wrong reading or registering the settings
*/
public static SettingsRepository getOrPopulateSettingsRepository( RepositoryRegistry repositoryRegistry, String settingsPathOrFile )
throws SettingsException
{
SettingsRepository settingsRepository = (SettingsRepository) repositoryRegistry.find( "npanday-settings" );
if (settingsRepository == null){
return populateSettingsRepository( repositoryRegistry, settingsPathOrFile);
}
return settingsRepository;
}