code: public boolean addLockedObjectOwner(String owner) {
  
          if (_owner == null) {
              _owner = new String[1];
          } else {
  
              int size = _owner.length;
              String[] newLockObjectOwner = new String[size + 1];
  
              // check if the owner is already here (that should actually not
              // happen)
              for (int i = 0; i < size; i++) {
                  if (_owner[i].equals(owner)) {
                      return false;
                  }
              }
  
              System.arraycopy(_owner, 0, newLockObjectOwner, 0, size);
              _owner = newLockObjectOwner;
          }
  
          _owner[_owner.length - 1] = owner;
          return true;
      }
docs: adds a new owner to a lock
  
  @param owner
  string that represents the owner
  @return true if the owner was added, false otherwise