Source:
private SnomedRf2ExportModel convertConfiguration(final ISnomedExportConfiguration configuration) { checkNotNull(configuration, "Configuration was missing for the export operation."); final ContentSubType contentSubType = convertType(configuration.getRf2ReleaseType()); final StorageRef exportStorageRef = new StorageRef(SnomedDatastoreActivator.REPOSITORY_UUID, configuration.getBranchPath()); final IBranchPath exportBranch = exportStorageRef.getBranch().branchPath(); final SnomedRf2ExportModel model = createExportModelWithAllRefSets(contentSubType, exportBranch); final String namespaceId = configuration.getCountryAndNamespaceId(); model.setNamespace(namespaceId); if (configuration.getModuleIds().isEmpty()) { final LongSet modules = ApplicationContext.getServiceForClass(SnomedTerminologyBrowser.class).getAllSubTypeIds(exportBranch, Long.parseLong(Concepts.MODULE_ROOT)); model.getModulesToExport().addAll(LongSets.toStringSet(modules)); } else { model.getModulesToExport().addAll(configuration.getModuleIds()); } model.setDeltaExportStartEffectiveTime(configuration.getDeltaExportStartEffectiveTime()); model.setDeltaExportEndEffectiveTime(configuration.getDeltaExportEndEffectiveTime()); model.setDeltaExport(ContentSubType.DELTA.equals(contentSubType)); final String transientEffectiveTime = configuration.getTransientEffectiveTime(); if (StringUtils.isEmpty(transientEffectiveTime)) { model.setUnsetEffectiveTimeLabel(""); } else if ("NOW".equals(transientEffectiveTime)) { model.setUnsetEffectiveTimeLabel(EffectiveTimes.format(Dates.todayGmt(), DateFormats.SHORT)); } else { try { EffectiveTimes.parse(transientEffectiveTime, DateFormats.SHORT); } catch (SnowowlRuntimeException e) { throw new BadRequestException("Transient effective time '%s' is not in the expected date format.", transientEffectiveTime); } model.setUnsetEffectiveTimeLabel(transientEffectiveTime); } return model; }

Target:
private SnomedRf2ExportModel convertConfiguration(final ISnomedExportConfiguration configuration) { checkNotNull(configuration, "Configuration was missing for the export operation."); final ContentSubType contentSubType = convertType(configuration.getRf2ReleaseType()); final StorageRef exportStorageRef = new StorageRef(SnomedDatastoreActivator.REPOSITORY_UUID, configuration.getBranchPath()); final IBranchPath exportBranch = exportStorageRef.getBranch().branchPath(); final SnomedRf2ExportModel model = createExportModelWithAllRefSets(contentSubType, exportBranch); final String countryAndNamespaceId = configuration.getCountryAndNamespaceId(); model.setCountryAndNamespaceId(countryAndNamespaceId); if (configuration.getModuleIds().isEmpty()) { final LongSet modules = ApplicationContext.getServiceForClass(SnomedTerminologyBrowser.class).getAllSubTypeIds(exportBranch, Long.parseLong(Concepts.MODULE_ROOT)); model.getModulesToExport().addAll(LongSets.toStringSet(modules)); } else { model.getModulesToExport().addAll(configuration.getModuleIds()); } model.setDeltaExportStartEffectiveTime(configuration.getDeltaExportStartEffectiveTime()); model.setDeltaExportEndEffectiveTime(configuration.getDeltaExportEndEffectiveTime()); model.setDeltaExport(ContentSubType.DELTA.equals(contentSubType)); final String transientEffectiveTime = configuration.getTransientEffectiveTime(); if (StringUtils.isEmpty(transientEffectiveTime)) { model.setUnsetEffectiveTimeLabel(""); } else if ("NOW".equals(transientEffectiveTime)) { model.setUnsetEffectiveTimeLabel(EffectiveTimes.format(Dates.todayGmt(), DateFormats.SHORT)); } else { try { EffectiveTimes.parse(transientEffectiveTime, DateFormats.SHORT); } catch (SnowowlRuntimeException e) { throw new BadRequestException("Transient effective time '%s' is not in the expected date format.", transientEffectiveTime); } model.setUnsetEffectiveTimeLabel(transientEffectiveTime); } return model; }