AuthenticateStub authenticateStub = new AuthenticateStub();
ConfigServiceAdminStub configServiceAdminStub = new ConfigServiceAdminStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/ConfigServiceAdmin");
authenticateStub.authenticateAdminStub(configServiceAdminStub, sessionCookie);
ArtifactReader artifactReader = new ArtifactReader();
OMElement omElement = artifactReader.getOMElement(XQueryMediatorTest.class.getResource("/xquery.xml").getPath());
configServiceAdminStub.updateConfiguration(omElement);
if (FrameworkSettings.STRATOS.equalsIgnoreCase("false")) {
result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT + "/services/StockQuoteProxy", null, "IBM");
} else if (FrameworkSettings.STRATOS.equalsIgnoreCase("true")) {
result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT + "/services/" + FrameworkSettings.TENANT_NAME + "/services/StockQuoteProxy", null, "IBM");