public static TestStep cloneTestStepForSecurityScan(WsdlTestStep sourceTestStep) {
WsdlTestStep clonedTestStep = null;
TestStepConfig testStepConfig = (TestStepConfig) sourceTestStep.getConfig().copy();
WsdlTestStepFactory factory = WsdlTestStepRegistry.getInstance().getFactory(testStepConfig.getType());
if (factory != null) {
clonedTestStep = factory.buildTestStep(sourceTestStep.getTestCase(), testStepConfig, false);
if (clonedTestStep instanceof Assertable) {
for (TestAssertion assertion : ((Assertable) clonedTestStep).getAssertionList()) {
((Assertable) clonedTestStep).removeAssertion(assertion);
}
}