code: protected GitHubClient createClient(String hostname)
  			throws MojoExecutionException {
  		if (!hostname.contains("://"))
  			return new RateLimitedGitHubClient(hostname);
  		try {
  			URL hostUrl = new URL(hostname);
  			return new RateLimitedGitHubClient(hostUrl.getHost(), hostUrl.getPort(),
  					hostUrl.getProtocol());
  		} catch (MalformedURLException e) {
  			throw new MojoExecutionException("Could not parse host URL "
  					+ hostname, e);
  		}
  	}
docs: Create client
  <p>
  Subclasses can override to do any custom client configuration
  
  @param hostname
  @return non-null client
  @throws MojoExecutionException