this.selector = new RoundRobinSelector();
} else if (selector instanceof RoundRobinSelector || selector instanceof RandomSelector || selector instanceof HashSelector
|| selector instanceof FairSelector || selector instanceof AllSelector) {
this.selector = selector;
} else {
this.selector = new CustomSelector(selector);
}
return this;
}