private byte[] loadClassFromFile(String fileName) {
    String classFileName = fileName.replace('.', '/') + ".class";
    try (var inputStream = getClass().getClassLoader().getResourceAsStream(classFileName)) {
      return Objects.requireNonNull(inputStream, "Could not load " + fileName + " (" + classFileName + ")")
        .readAllBytes();
    } catch (IOException e) {
      throw new UncheckedIOException(e);
    }
  }
Returns a {@link ClassLoader} that loads every class with a name starting with {@code prefix} even if the parent
has already loaded it.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/DuplicateClassLoader.java