RuntimeModelLoader modelLoader = moduleManager.getModelLoader();
if (modelLoader != null) {
byte[] contents = modelLoader.getContents(declaration, fullPath);
if (contents != null) {
URI uri = modelLoader.getContentUri(declaration, fullPath);
return new ByteArrayResource(contents, uri);
}
}
}
// Second let's see if we can find the on-disk location of the module