List<TestStepSecurityTestConfig> testStepSecurityTestList = getConfig().getTestStepSecurityTestList();
if (!testStepSecurityTestList.isEmpty()) {
for (TestStepSecurityTestConfig testStepSecurityTest : testStepSecurityTestList) {
if (testStepSecurityTest.getTestStepId().equals(testStep.getId())) {
List<SecurityScanConfig> securityScanList = testStepSecurityTest.getTestStepSecurityScanList();
SecurityScanFactory factory = SoapUI.getSoapUICore().getSecurityScanRegistry()
.getFactory(securityScan.getType());
SecurityScanConfig newSecScanConfig = (SecurityScanConfig) securityScan.getConfig().copy();
SecurityScan newSecScan = factory.buildSecurityScan(testStep, newSecScanConfig, this);
securityScanList.remove(securityScan.getConfig());
securityScanList.add(index + offset, newSecScanConfig);
SecurityScanConfig[] cc = new SecurityScanConfig[securityScanList.size()];
for (int i = 0; i < securityScanList.size(); i++) {