private Map<String, Class> loadCompiledClasses(List<CompilationUnit> compilationUnits, ClassLoader classLoader) {
        Map<String, Class> compiledClasses = new HashMap<>();
        compilationUnits.forEach((compilationUnit) -> {
            try {
                Class clazz = classLoader.loadClass(compilationUnit.getName());
                compiledClasses.put(compilationUnit.getName(), clazz);
            } catch (ClassNotFoundException e) {
                throw new RuntimeException(e); // Should have been checked earlier
            }
        });
        return compiledClasses;
    }