public boolean importSecurityScan(TestStep targetTestStep, SecurityScan securityScanToClone, boolean overwrite) {
// testCase.beforeSave();
XmlObject newConfig = securityScanToClone.getConfig().copy();
SecurityScanConfig newScanConfig = SecurityScanConfig.Factory.newInstance();
newScanConfig.set(newConfig);
SecurityScanFactory factory = SoapUI.getSoapUICore().getSecurityScanRegistry()
.getFactory(newScanConfig.getType());
boolean targetStepHasScans = getTestStepSecurityScansCount(targetTestStep.getId()) > 0;
if (targetStepHasScans) {
boolean targetHasScanOfSameType = false;
for (SecurityScan oldScan : getTestStepSecurityScans(targetTestStep.getId())) {
if (oldScan.getType().equals(securityScanToClone.getType())) {