@Override
  public void close() throws IOException {
    super.close();

    if (factory != null) {
      factory.close();
    }
  }
 @Override
 public SolrHttpClientBuilder getHttpClientBuilder(SolrHttpClientBuilder builder) {
   return factory.getHttpClientBuilder(Optional.ofNullable(builder));
 }