List<ModuleConfiguration> configurations =
moduleConfigService.findActiveConfigurationsByType(ModuleConfigurationType.TAX_CALCULATION);
//Try to find a default configuration
ModuleConfiguration config = null;
if (configurations != null) {
for (ModuleConfiguration configuration : configurations) {
if (configuration.getIsDefault()) {
config = configuration;
break;