@Transactional
 public void deleteImportObjects() {
   importObjectStore.deleteImportObjects();
   importDataValueService.deleteImportDataValues();
 }
  @Transactional
  public void cascadeDeleteImportObjects(Class<?> clazz) {
    importObjectStore.deleteImportObjects(clazz);

    if (clazz.equals(DataElement.class)) {
      importObjectStore.deleteImportObjects(DataElementCategoryOptionCombo.class);
      importObjectStore.deleteImportObjects(DataElementCategoryCombo.class);
      importObjectStore.deleteImportObjects(DataElementCategory.class);
      importObjectStore.deleteImportObjects(DataElementCategoryOption.class);
      importObjectStore.deleteImportObjects(GroupMemberType.CATEGORY_CATEGORYOPTION);
      importObjectStore.deleteImportObjects(GroupMemberType.CATEGORYCOMBO_CATEGORY);

      importObjectStore.deleteImportObjects(GroupMemberType.DATAELEMENTGROUP);

      importObjectStore.deleteImportObjects(DataSet.class);
      importObjectStore.deleteImportObjects(GroupMemberType.DATASET);
      importObjectStore.deleteImportObjects(GroupMemberType.DATASET_SOURCE);
      importObjectStore.deleteImportObjects(CompleteDataSetRegistration.class);

      importObjectStore.deleteImportObjects(Indicator.class);
      importObjectStore.deleteImportObjects(GroupMemberType.INDICATORGROUP);
      importObjectStore.deleteImportObjects(GroupMemberType.DATADICTIONARY_INDICATOR);

      importObjectStore.deleteImportObjects(GroupMemberType.DATADICTIONARY_DATAELEMENT);

      importDataValueService.deleteImportDataValues();
    } else if (clazz.equals(DataElementGroup.class)) {
      importObjectStore.deleteImportObjects(GroupMemberType.DATAELEMENTGROUP);
      importObjectStore.deleteImportObjects(GroupMemberType.DATAELEMENTGROUPSET);
    } else if (clazz.equals(DataElementGroupSet.class)) {
      importObjectStore.deleteImportObjects(GroupMemberType.DATAELEMENTGROUPSET);
    } else if (clazz.equals(IndicatorType.class)) {
      importObjectStore.deleteImportObjects(Indicator.class);
      importObjectStore.deleteImportObjects(GroupMemberType.INDICATORGROUP);
      importObjectStore.deleteImportObjects(GroupMemberType.DATADICTIONARY_INDICATOR);
    } else if (clazz.equals(Indicator.class)) {
      importObjectStore.deleteImportObjects(GroupMemberType.INDICATORGROUP);
      importObjectStore.deleteImportObjects(GroupMemberType.DATADICTIONARY_INDICATOR);
    } else if (clazz.equals(IndicatorGroup.class)) {
      importObjectStore.deleteImportObjects(GroupMemberType.INDICATORGROUP);
      importObjectStore.deleteImportObjects(GroupMemberType.INDICATORGROUPSET);
    } else if (clazz.equals(IndicatorGroupSet.class)) {
      importObjectStore.deleteImportObjects(GroupMemberType.INDICATORGROUPSET);
    } else if (clazz.equals(DataDictionary.class)) {
      importObjectStore.deleteImportObjects(GroupMemberType.DATADICTIONARY_DATAELEMENT);
      importObjectStore.deleteImportObjects(GroupMemberType.DATADICTIONARY_INDICATOR);
    } else if (clazz.equals(DataSet.class)) {
      importObjectStore.deleteImportObjects(GroupMemberType.DATASET);
      importObjectStore.deleteImportObjects(GroupMemberType.DATASET_SOURCE);
      importObjectStore.deleteImportObjects(CompleteDataSetRegistration.class);
    } else if (clazz.equals(OrganisationUnit.class)) {
      importObjectStore.deleteImportObjects(GroupMemberType.ORGANISATIONUNITGROUP);
      importObjectStore.deleteImportObjects(GroupMemberType.ORGANISATIONUNITRELATIONSHIP);
      importObjectStore.deleteImportObjects(GroupMemberType.DATASET_SOURCE);

      importObjectStore.deleteImportObjects(CompleteDataSetRegistration.class);

      importDataValueService.deleteImportDataValues();
    } else if (clazz.equals(OrganisationUnitGroup.class)) {
      importObjectStore.deleteImportObjects(GroupMemberType.ORGANISATIONUNITGROUP);
    } else if (clazz.equals(OrganisationUnitGroupSet.class)) {
      importObjectStore.deleteImportObjects(GroupMemberType.ORGANISATIONUNITGROUPSET);
    }
  }
 @Transactional
 public void deleteImportObjects(Class<?> clazz) {
   importObjectStore.deleteImportObjects(clazz);
 }