PluginRepositoryList repos = ((PluginRepositoryList) kernel.getProxyManager().createProxy((AbstractName) installers.iterator().next(),
PluginRepositoryList.class));
List<URL> urls = repos.getRepositories();
if (urls.isEmpty()) {
repos.refresh();
urls = repos.getRepositories();
if (urls.isEmpty()) {
throw new ServletException("Unable to install sample applicatoin; unable to download repository list");
}
}