Program: 57816
Project: 57816
Buggy source:
@Override public void init(){
  if (configuration == null)   createDefaultConfiguration();
 else   if (loadDataParameters != null && !loadDataParameters.isColumnDimension())   createDefaultConfigurationWithSamplesAsRows();
  boolean externalMappingLoaded=false;
  if (configuration.mappingFile != null) {
    IDMappingLoader.get().loadMappingFile(configuration.mappingFile);
    externalMappingLoaded=true;
  }
  if (externalMappingLoaded) {
    recordIDCategory=IDCategory.getIDCategory(configuration.recordIDCategory);
    dimensionIDCategory=IDCategory.getIDCategory(configuration.dimensionIDCategory);
    humanReadableRecordIDType=IDType.getIDType(configuration.humanReadableRecordIDType);
    humanReadableDimensionIDType=IDType.getIDType(configuration.humanReadableDimensionIDType);
  }
 else {
    recordIDCategory=IDCategory.registerCategory(configuration.recordIDCategory);
    dimensionIDCategory=IDCategory.registerCategory(configuration.dimensionIDCategory);
    humanReadableRecordIDType=IDType.registerType(configuration.humanReadableRecordIDType,recordIDCategory,EColumnType.STRING);
    humanReadableDimensionIDType=IDType.registerType(configuration.humanReadableDimensionIDType,dimensionIDCategory,EColumnType.STRING);
  }
  recordIDType=IDType.registerType("String_Node_Str" + dataDomainID + "String_Node_Str"+ hashCode(),recordIDCategory,EColumnType.INT);
  recordIDType.setInternalType(true);
  dimensionIDType=IDType.registerType("String_Node_Str" + dataDomainID + "String_Node_Str"+ hashCode(),dimensionIDCategory,EColumnType.INT);
  dimensionIDType.setInternalType(true);
  recordGroupIDType=IDType.registerType("String_Node_Str" + dataDomainID + "String_Node_Str"+ hashCode(),recordIDCategory,EColumnType.INT);
  recordGroupIDType.setInternalType(true);
  if (configuration.primaryRecordMappingType != null)   primaryRecordMappingType=IDType.getIDType(configuration.primaryRecordMappingType);
 else   primaryRecordMappingType=recordIDType;
  if (configuration.primaryDimensionMappingType != null)   primaryDimensionMappingType=IDType.getIDType(configuration.primaryDimensionMappingType);
 else   primaryDimensionMappingType=dimensionIDType;
  recordDenominationPlural=configuration.recordDenominationPlural;
  recordDenominationSingular=configuration.recordDenominationSingular;
  dimensionDenominationPlural=configuration.dimensionDenominationPlural;
  dimensionDenominationSingular=configuration.dimensionDenominationSingular;
  recordIDMappingManager=IDMappingManagerRegistry.get().getIDMappingManager(recordIDCategory);
  dimensionIDMappingManager=IDMappingManagerRegistry.get().getIDMappingManager(dimensionIDCategory);
  recordSelectionManager=new RecordSelectionManager(recordIDMappingManager,recordIDType);
  dimensionSelectionManager=new DimensionSelectionManager(dimensionIDMappingManager,dimensionIDType);
  recordGroupSelectionManager=new SelectionManager(recordGroupIDType);
  addIDCategory(dimensionIDCategory);
  addIDCategory(recordIDCategory);
  super.init();
}

Fixed version (ground truth):
@Override public void init(){
  if (configuration == null || configuration.isDefaultConfiguration()) {
    if (loadDataParameters != null && !loadDataParameters.isColumnDimension()) {
      if (configuration.isDefaultConfiguration()) {
        IDType.unregisterType(recordIDType);
        IDType.unregisterType(dimensionIDType);
        IDType.unregisterType(recordGroupIDType);
      }
      createDefaultConfigurationWithColumnsAsRecords();
    }
 else     createDefaultConfiguration();
  }
  boolean externalMappingLoaded=false;
  if (configuration.mappingFile != null) {
    IDMappingLoader.get().loadMappingFile(configuration.mappingFile);
    externalMappingLoaded=true;
  }
  if (externalMappingLoaded) {
    recordIDCategory=IDCategory.getIDCategory(configuration.recordIDCategory);
    dimensionIDCategory=IDCategory.getIDCategory(configuration.dimensionIDCategory);
    humanReadableRecordIDType=IDType.getIDType(configuration.humanReadableRecordIDType);
    humanReadableDimensionIDType=IDType.getIDType(configuration.humanReadableDimensionIDType);
  }
 else {
    recordIDCategory=IDCategory.registerCategory(configuration.recordIDCategory);
    dimensionIDCategory=IDCategory.registerCategory(configuration.dimensionIDCategory);
    humanReadableRecordIDType=IDType.registerType(configuration.humanReadableRecordIDType,recordIDCategory,EColumnType.STRING);
    humanReadableDimensionIDType=IDType.registerType(configuration.humanReadableDimensionIDType,dimensionIDCategory,EColumnType.STRING);
  }
  recordIDType=IDType.registerType("String_Node_Str" + dataDomainID + "String_Node_Str"+ hashCode(),recordIDCategory,EColumnType.INT);
  recordIDType.setInternalType(true);
  dimensionIDType=IDType.registerType("String_Node_Str" + dataDomainID + "String_Node_Str"+ hashCode(),dimensionIDCategory,EColumnType.INT);
  dimensionIDType.setInternalType(true);
  recordGroupIDType=IDType.registerType("String_Node_Str" + dataDomainID + "String_Node_Str"+ hashCode(),recordIDCategory,EColumnType.INT);
  recordGroupIDType.setInternalType(true);
  if (configuration.primaryRecordMappingType != null)   primaryRecordMappingType=IDType.getIDType(configuration.primaryRecordMappingType);
 else   primaryRecordMappingType=recordIDType;
  if (configuration.primaryDimensionMappingType != null)   primaryDimensionMappingType=IDType.getIDType(configuration.primaryDimensionMappingType);
 else   primaryDimensionMappingType=dimensionIDType;
  recordDenominationPlural=configuration.recordDenominationPlural;
  recordDenominationSingular=configuration.recordDenominationSingular;
  dimensionDenominationPlural=configuration.dimensionDenominationPlural;
  dimensionDenominationSingular=configuration.dimensionDenominationSingular;
  recordIDMappingManager=IDMappingManagerRegistry.get().getIDMappingManager(recordIDCategory);
  dimensionIDMappingManager=IDMappingManagerRegistry.get().getIDMappingManager(dimensionIDCategory);
  recordSelectionManager=new RecordSelectionManager(recordIDMappingManager,recordIDType);
  dimensionSelectionManager=new DimensionSelectionManager(dimensionIDMappingManager,dimensionIDType);
  recordGroupSelectionManager=new SelectionManager(recordGroupIDType);
  addIDCategory(dimensionIDCategory);
  addIDCategory(recordIDCategory);
  super.init();
}