public static LocalDocumentAccess createFromSchemas(String schemaDirectory) {
        File[] schemasFiles = new File(schemaDirectory).listFiles(name -> name.toString().endsWith(".sd"));
        if (schemasFiles == null)
            throw new IllegalArgumentException(schemaDirectory + " is not a directory");
        if (schemasFiles.length == 0)
            throw new IllegalArgumentException("No schema files found under " + schemaDirectory);
        DocumentmanagerConfig config = Deriver.getDocumentManagerConfig(Stream.of(schemasFiles)
                                                                              .map(File::toString)
                                                                              .toList()).build();
        return new LocalDocumentAccess(new DocumentAccessParams().setDocumentmanagerConfig(config));
    }
Reads the {@code .sd} files in the given directory, and returns a {@link LocalDocumentAccess} with these document types.
<br>
Example usage:
<pre>
LocalDocumentAccess access = DocumentAccesses.ofSchemas("src/main/application/schemas");
</pre>
application/src/main/java/com/yahoo/application/container/DocumentAccesses.java