class BankProfileReadingService implements ResourceLoaderAware {

    public ProfileConfigurations getProfileConfigurations() {
        Map<String, ProfileConfiguration> instanceConfigurations = new HashMap<>();
        if (multitenancyEnabled) {
            customBankProfiles.keySet().forEach(key -> instanceConfigurations.put(
                key.toLowerCase(),
                yaml.loadAs(loadProfile(key), ProfileConfiguration.class)
            ));
        }
        ProfileConfiguration singleProfileConfiguration = yaml.loadAs(loadProfile(), ProfileConfiguration.class);
        return new ProfileConfigurations(multitenancyEnabled, singleProfileConfiguration, instanceConfigurations);
    }

    public  BankProfileReadingService();

}