code: @Deprecated
  	public static boolean isTemplateExist(Client client, String template) {
  		return !client.admin().indices().prepareGetTemplates(template).get().getIndexTemplates().isEmpty();
  	}
docs: Check if a template exists
  @param client Elasticsearch client
  @param template template name
  @return true if the template exists
  @deprecated Will be removed when we don't support TransportClient anymore