javagit/src/main/java/edu/nyu/cs/javagit/client/ClientManager.java
public IClient getClientInstance(ClientType clientType) {
    IClient clientInstance = clientImpls.get(clientType);
    if (null == clientInstance) {
      if (ClientType.CLI == clientType) {
        clientInstance = new CliClient();
      }
      if (null != clientInstance) {
        clientImpls.put(clientType, clientInstance);
      }
    }
    return clientInstance;
  }
public IClient getClientInstance(ClientType clientType) {
    IClient clientInstance = clientImpls.get(clientType);
    if (null == clientInstance) {
      if (ClientType.CLI == clientType) {
        clientInstance = new CliClient();
      }
      if (null != clientInstance) {
        clientImpls.put(clientType, clientInstance);
      }
    }
    return clientInstance;
  }
Gets an instance of the specified client type.

@param clientType
The type of client to get.
@return An instance of the specified client type.