protected SecurityTest buildSecurityTest(SecurityTestConfig addNewSecurityTest) {
return new SecurityTest(this, addNewSecurityTest);
}
public SecurityTest cloneSecurityTest(SecurityTest securityTest, String name) {
SecurityTestConfig securityTestConfig = getConfig().addNewSecurityTest();
securityTestConfig.set(securityTest.getConfig().copy());
SecurityTest newSecurityTest = buildSecurityTest(securityTestConfig);
newSecurityTest.setName(name);
ModelSupport.createNewIds(newSecurityTest);
newSecurityTest.afterLoad();