private GraphClassLoader newGraphClassLoader() {
TypeReaderRegistry typeReaderRegistry = TypeReaderRegistryFactory.getTypeReaderRegistry();
ModuleLocationResolver resolver = new StandaloneModuleLocationResolver();
InternalModuleDefinitionSource source = new InternalModuleDefinitionSource(typeReaderRegistry, resolver, new String[]{"impala-core", "sample-module4", "sample-module6"});
RootModuleDefinition rootDefinition = source.getModuleDefinition();
DependencyManager dependencyManager = new DependencyManager(rootDefinition);
GraphClassLoaderFactory factory = new GraphClassLoaderFactory();
factory.setModuleLocationResolver(resolver);