code: protected void checkFileNotExcluded( String id,
                                           File file ) {
          if (isExcluded(file)) {
              String msg = JcrI18n.fileConnectorCannotStoreFileThatIsExcluded.text(getSourceName(), id, file.getAbsolutePath());
              throw new DocumentStoreException(id, msg);
          }
      }
docs: Utility method to ensure that the file is writable by this connector.
  
  @param id the identifier of the node
  @param file the file
  @throws DocumentStoreException if the file is expected to be writable but is not or is excluded, or if the connector is
  readonly