code: public void setTermMeta(final long termId, final List<Meta> termMeta) throws SQLException {
  
        clearTermMeta(termId);
  
        if(termMeta == null || termMeta.size() == 0) {
           return;
        }
        Connection conn = null;
        PreparedStatement stmt = null;
        Timer.Context ctx = metrics.setTermMetaTimer.time();
        try {
           conn = connectionSupplier.getConnection();
           stmt = conn.prepareStatement(insertTermMetaSQL);
           for(Meta meta : termMeta) {
              stmt.setLong(1, termId);
              stmt.setString(2, meta.key);
              stmt.setString(3, meta.value);
              stmt.executeUpdate();
           }
        } finally {
           ctx.stop();
           SQLUtil.closeQuietly(conn, stmt);
        }
     }
docs: Sets metadata for a term.
  <p>
  Clears existing metadata.
  </p>
  @param termId The term id.
  @param termMeta The metadata.
  @throws SQLException on database error.