return moduleProviders;
}
private ModuleSpec findAddonModule(ModuleIdentifier id)
{
Addon addon = currentAddon.get();
if (addon != null)
{
Set<AddonView> views = stateManager.getViewsOf(addon);
AddonId found = addon.getId();
for (AddonRepository repository : views.iterator().next().getRepositories())
{
if (repository.isEnabled(found) && repository.isDeployed(found))
{
Addon mappedAddon = moduleCache.getAddon(id);
if (mappedAddon != null && mappedAddon.getId().equals(found))
{
Builder builder = ModuleSpec.build(id);
builder.addDependency(DependencySpec.createModuleDependencySpec(SystemClasspathSpec.ID));
builder.addDependency(DependencySpec.createModuleDependencySpec(XPathJDKClasspathSpec.ID));