private ThreadFactory getThreadFactory(CuratorFrameworkFactory.Builder builder) {
   ThreadFactory threadFactory = builder.getThreadFactory();
   if (threadFactory == null) {
     threadFactory = ThreadUtils.newThreadFactory("CuratorFramework");
   }
   return threadFactory;
 }