code: private void insertNewLease(String recoveryIdentity, String recoveryGroup, Connection conn) throws SQLException
      {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "insertNewLease", this);
  
          short serviceId = (short) 1;
          String insertString = "INSERT INTO " +
                                _leaseTableName +
                                " (SERVER_IDENTITY, RECOVERY_GROUP, LEASE_OWNER, LEASE_TIME)" +
                                " VALUES (?,?,?,?)";
  
          PreparedStatement specStatement = null;
          long fir1 = System.currentTimeMillis();
  
          Tr.audit(tc, "WTRN0108I: Insert New Lease for server with recovery identity " + recoveryIdentity);
          try
          {
              if (tc.isDebugEnabled())
                  Tr.debug(tc, "Need to setup new row using - " + insertString + ", and time: " + fir1);
              specStatement = conn.prepareStatement(insertString);
              specStatement.setString(1, recoveryIdentity);
              specStatement.setString(2, recoveryGroup);
              specStatement.setString(3, recoveryIdentity);
              specStatement.setLong(4, fir1);
  
              int ret = specStatement.executeUpdate();
  
              if (tc.isDebugEnabled())
                  Tr.debug(tc, "Have inserted Server row with return: " + ret);
          } finally
          {
              if (specStatement != null && !specStatement.isClosed())
                  specStatement.close();
          }
          if (tc.isEntryEnabled())
              Tr.exit(tc, "insertNewLease");
      }
docs: Insert a new lease in the table
  
  @param recoveryIdentity
  @param recoveryGroup
  @param conn
  @throws SQLException