docs: protected InputStream getResourceInputStream(final Resource resource, final String entityId) throws IOException {
          LOGGER.debug("Locating metadata resource from input stream.");
          if (!resource.exists() || !resource.isReadable()) {
              throw new FileNotFoundException("Resource does not exist or is unreadable");
          }
          return resource.getInputStream();
      }