}
config.setRequestHeader("User-Agent", API_USER_AGENT);
this.connection = Connector.newConnection(config);
CallOptions_element co = new CallOptions_element();
// Give the connection a client id if we have one
if (this.clientId != null) {
co.setClient(this.clientId);
} else if (this.externalClientId != null) {
// Check for any external client id we might
// have come across (see getConfig)
co.setClient(this.externalClientId);
} else {
co.setClient(API_USER_AGENT); //just default it to the version of the sdk
}
this.connection.__setCallOptions(co);
}