code: protected Locator locator(final CouchbaseRequest request) {
          if (request instanceof BinaryRequest) {
              return binaryLocator;
          } else if (request instanceof ViewRequest) {
              return viewLocator;
          } else if (request instanceof QueryRequest) {
              return queryLocator;
          } else if (request instanceof ConfigRequest) {
              return configLocator;
          } else if (request instanceof SearchRequest) {
              return searchLocator;
          } else if (request instanceof AnalyticsRequest) {
              return analyticsLocator;
          } else {
              throw new IllegalArgumentException("Unknown Request Type: " + request);
          }
      }
docs: Helper method to detect the correct locator for the given request type.
  
  @return the locator for the given request type.