@Override
  public boolean hasAttributePage(@NotNull PersistentFSConnection connection,
                                  int fileId,
                                  @NotNull FileAttribute attribute) throws IOException {
    PersistentFSConnection.ensureIdIsValid(fileId);
    lock.readLock().lock();
    try {
      int attributeRecordId = connection.getRecords().getAttributeRecordId(fileId);
      if (attributeRecordId == NON_EXISTENT_ATTRIBUTE_RECORD_ID) {
        return false;
      }
      int encodedAttributeId = connection.getAttributeId(attribute.getId());

      return hasAttribute(attributeRecordId, fileId, encodedAttributeId);
    }
    finally {
      lock.readLock().unlock();
    }
  }
@Override
  public boolean hasAttributePage(@NotNull PersistentFSConnection connection,
                                  int fileId,
                                  @NotNull FileAttribute attribute)