public boolean isOwner(){
  return id != null && ownerId != null && id.equals(ownerId);
}

public boolean isOwner ( ) { return id != null && ownerId != null && id . equals ( ownerId ) ; }
returns true if this node is the owner of the lock ( or the leader )
