code: public Metadata getMetadata() throws DBException {
          if (!this.cluster.isClosed()) {
              this.metadata = cluster.getMetadata();
              return this.metadata;
          } else {
              throw new DBException("The cluster has been closed");
          }
      }
docs: Get the metadata of the Cassandra Cluster.
  
  @return Metadata
  @throws DBException