public ZooKeeperEndpointGroup build() {
        final CuratorFramework client = buildCuratorFramework();
        final boolean internalClient = !isUserSpecifiedCuratorFramework();
        final boolean allowEmptyEndpoints = dynamicEndpointGroupBuilder.shouldAllowEmptyEndpoints();
        final long selectionTimeoutMillis = dynamicEndpointGroupBuilder.selectionTimeoutMillis();

        return new ZooKeeperEndpointGroup(selectionStrategy, allowEmptyEndpoints, selectionTimeoutMillis,
                                          client, znodePath(), spec, internalClient);
    }
Returns a newly-created {@link ZooKeeperEndpointGroup} based on the properties set so far.
zookeeper3/src/main/java/com/linecorp/armeria/client/zookeeper/ZooKeeperEndpointGroupBuilder.java