public Lease createLease(String leaseName, int leaseTimeoutPeriod, final LeaseListener listener)
    throws LeaseStillHeldException {
    Lease lease = new Lease(leaseName, leaseTimeoutPeriod, listener);
    addLease(lease);
    return lease;
  }
Create a lease and insert it to the map of leases.
@param leaseName          name of the lease
@param leaseTimeoutPeriod length of the lease in milliseconds
@param listener           listener that will process lease expirations
@return The lease created.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/LeaseManager.java