public FileAvroSchemaStore(Path schemaDirectoryPath) { this.schemaDirectoryPath = schemaDirectoryPath; File directory = schemaDirectoryPath.toFile(); if (directory.exists()) { if (!directory.isDirectory()) { throw new IllegalArgumentException("Invalid SchemaStore root path: " + schemaDirectoryPath); } loadSchemas(schemaDirectoryPath); } else { directory.mkdirs(); } }