public WatsonService(String name){
  this.name=name;
  apiKey=CredentialUtils.getAPIKey(name);
  client=configureHttpClient();
  String url=CredentialUtils.getAPIUrl(name);
  if ((url != null) && !url.isEmpty()) {
    setEndPoint(url);
  }
}

public WatsonService ( String name ) { this . name = name ; apiKey = CredentialUtils . getAPIKey ( name ) ; client = configureHttpClient ( ) ; String url = CredentialUtils . getAPIUrl ( name ) ; if ( ( url != null ) && ! url . isEmpty ( ) ) { setEndPoint ( url ) ; } }
instantiates a new watson service .
