for (AddonRepository repository : forge.getRepositories())
{
if (repository instanceof MutableAddonRepository)
{
MutableAddonRepository mutableRepository = (MutableAddonRepository) repository;
deploy(mutableRepository, requestedAddonId, requestedAddonNode);
mutableRepository.enable(requestedAddonId);
break;
}
}
return requestedAddonId;
}