code: public void addInterceptor(ConnectInterceptor<?> interceptor) {
  		Class<?> serviceApiType = GenericTypeResolver.resolveTypeArgument(interceptor.getClass(), ConnectInterceptor.class);
  		connectInterceptors.add(serviceApiType, interceptor);
  	}
docs: Adds a ConnectInterceptor to receive callbacks during the connection process.
  Useful for programmatic configuration.
  @param interceptor the connect interceptor to add