String suffix = IntelliTracConfiguration.getInstance().getConfiguration().getString("xmlrpc_suffix");
config.setServerURL(new URL(StringUtils.removeEnd(settings.getTracUrl(), "/") + suffix));
XmlRpcClient xmlRpcClient = new XmlRpcClient();
xmlRpcClient.setConfig(config);
XmlRpcCommonsTransportFactory transportFactory = new XmlRpcCommonsTransportFactory(xmlRpcClient);
Credentials credentials = new UsernamePasswordCredentials(settings.getLogin(), settings.getPassword());
HttpClient httpClient = new HttpClient();
httpClient.getState().setCredentials(AuthScope.ANY, credentials);
transportFactory.setHttpClient(httpClient);
xmlRpcClient.setTransportFactory(transportFactory);
return xmlRpcClient;
}