code: public InetAddress activeNodeForId(final String id) {
          BucketConfig config = bucketConfig.get();
  
          if (config instanceof CouchbaseBucketConfig) {
              return nodeForIdOnCouchbaseBucket(id, (CouchbaseBucketConfig) config);
          } else if (config instanceof MemcachedBucketConfig) {
              return nodeForIdOnMemcachedBucket(id, (MemcachedBucketConfig) config);
          } else {
              throw new UnsupportedOperationException("Bucket type not supported: " + config.getClass().getName());
          }
      }
docs: Returns the target active node {@link InetAddress} for a given document ID on the bucket.
  
  @param id the document id to convert.
  @return the node for the given document id.