code: public CredHubTemplate credHubTemplate(CredHubProperties credHubProperties,
  										   ClientOptions clientOptions,
  										   ClientRegistrationRepository clientRegistrationRepository,
  										   OAuth2AuthorizedClientService authorizedClientService) {
  		return new CredHubTemplate(credHubProperties, clientHttpRequestFactory(clientOptions),
  				clientRegistrationRepository, authorizedClientService);
  	}
docs: Create a {@link CredHubTemplate} for interaction with a CredHub server
  using OAuth2 for authentication.
  
  @param credHubProperties connection properties
  @param clientOptions connection options
  @param clientRegistrationRepository a repository of OAuth2 client registrations
  @param authorizedClientService  a repository of authorized OAuth2 clients
  @return a {@code CredHubTemplate}