NamedCounters counters = new NamedCounters(new String[] { DATASET_COUNTER_NAME, DATASET_TO_MDSTORE_COUNTER_NAME });
MDStoreFacade mdStoreFacade = ServiceFacadeUtils.instantiate(parameters);
String mdStoresCSV = parameters.get(IMPORT_DATACITE_MDSTORE_IDS_CSV);
if (StringUtils.isNotBlank(mdStoresCSV) && !WorkflowRuntimeParameters.UNDEFINED_NONEMPTY_VALUE.equals(mdStoresCSV)) {
String[] mdStoreIds = StringUtils.split(mdStoresCSV, WorkflowRuntimeParameters.DEFAULT_CSV_DELIMITER);
<BUG>SAXParserFactory parserFactory = SAXParserFactory.newInstance();
SAXParser saxParser = parserFactory.newSAXParser();</BUG>
for (String currentMdStoreId : mdStoreIds) {
int currentCount = 0;
long startTime = System.currentTimeMillis();

NamedCounters counters = new NamedCounters(new String[] { DATASET_COUNTER_NAME, DATASET_TO_MDSTORE_COUNTER_NAME });
MDStoreFacade mdStoreFacade = ServiceFacadeUtils.instantiate(parameters);
String mdStoresCSV = parameters.get(IMPORT_DATACITE_MDSTORE_IDS_CSV);
if (StringUtils.isNotBlank(mdStoresCSV) && !WorkflowRuntimeParameters.UNDEFINED_NONEMPTY_VALUE.equals(mdStoresCSV)) {
String[] mdStoreIds = StringUtils.split(mdStoresCSV, WorkflowRuntimeParameters.DEFAULT_CSV_DELIMITER);
SAXParserFactory parserFactory = SAXParserFactory.newInstance();
parserFactory.setNamespaceAware(true);
SAXParser saxParser = parserFactory.newSAXParser();
for (String currentMdStoreId : mdStoreIds) {
int currentCount = 0;
long startTime = System.currentTimeMillis();
