public Template getTemplate(int id) throws MetadataException {
    return clusterSchemaInfo.getTemplate(id);
  }
Get template by id. Only leader uses this interface.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/schema/ClusterSchemaManager.java