final IRequestOriginScanner requestOrigin = workspace.getRequestLog().getRequestOriginScanner(scanInstance);
IHttpRequestEngine requestEngine = requestEngineFactory.createRequestEngine(IHttpRequestEngine.EngineConfigType.CONFIG_SCANNER, requestEngineConfig, requestOrigin);
HttpProtocolParams.setUserAgent(requestEngine.getHttpClient().getParams(), config.getUserAgent());
// REVISIT: consider moving authentication method to request engine config
IIdentity identity = config.getScanIdentity();
if (identity != null && identity.getAuthMethod() != null) {
identity.getAuthMethod().setAuth(requestEngine);
}
if (config.getCookieList() != null && !config.getCookieList().isEmpty()) {
CookieStore cookieStore = requestEngine.getCookieStore();
for (Cookie c: config.getCookieList()) {