if(workspace != null) {
contentAnalyzer = contentAnalyzerFactory.createContentAnalyzer(workspace.getScanAlertRepository().getProxyScanInstance());
contentAnalyzer.setDefaultAddToRequestLog(true);
contentAnalyzer.setAddLinksToModel(true);
}
IRequestOrigin requestOrigin = workspace.getRequestLog().getRequestOriginRequestEditor();
IHttpRequestEngineFactory requestEngineFactory = Activator.getDefault().getHttpRequestEngineFactoryService();
requestEngine = requestEngineFactory.createRequestEngine(IHttpRequestEngine.EngineConfigType.CONFIG_PROXY, requestEngineFactory.createConfig(), requestOrigin);
requestBuilder = requestEngineFactory.createRequestBuilder();
}