* @return
*/
private SecurityScan buildSecurityScan( SecurityScanFactory factory, SecurityScanConfig newSecScanConfig,
TestStepSecurityTestConfig testStepSecurityTestConfig, TestStep testStep )
{
SecurityScanConfig newSecurityScan = testStepSecurityTestConfig.addNewTestStepSecurityScan();
newSecurityScan.setType( newSecScanConfig.getType() );
newSecurityScan.setName( newSecScanConfig.getName() );
newSecurityScan.setConfig( newSecScanConfig.getConfig() );
newSecurityScan.setAssertionArray( newSecScanConfig.getAssertionList().toArray( new TestAssertionConfig[0] ) );
newSecurityScan.setTestStep( newSecScanConfig.getTestStep() );
newSecurityScan.setCheckedParameters( newSecScanConfig.getCheckedParameters() );
newSecurityScan.setExecutionStrategy( newSecScanConfig.getExecutionStrategy() );
return factory.buildSecurityScan( testStep, newSecurityScan, this );
}