// Check to see if we're requiring updates over HTTPS - if not output a warning
boolean onlyUseHttps = Boolean.parseBoolean(request.getParameter("use-https"));
if (!onlyUseHttps) _logger.warn("checking for updates using non-secure method");
// Get all installed widgets
IPersistenceManager persistenceManager = PersistenceManagerFactory.getPersistenceManager();
IWidget[] widgets = persistenceManager.findAll(IWidget.class);
// Create a W3CWidget factory for the current context
W3CWidgetFactory factory = getFactory(request.getSession().getServletContext());
// Iterate over the widgets and attempt to install updates
for (IWidget widget: widgets){
try {