VersionManager versionManager = new VersionManager(runtime);
try {
moduleSource = runtime.getModuleSourceManager().getModuleSource(moduleDefinition.getFile(), moduleDefinition.getSourceType());
// build classpath
ClassLoadingConfig classLoadingConfig;
InputStream is = moduleSource.getClassLoaderConfig();
if (is != null) {
try {
Document document = DocumentHelper.parse(is);
classLoadingConfig = XmlClassLoaderBuilder.build(document.getDocumentElement(), moduleSource, runtime.getArtifactRepository(), versionManager);