protected void update(String resourceId, HttpServletRequest request, HttpServletResponse response)
throws ResourceNotFoundException, InvalidParametersException,
UnauthorizedAccessException {
// attempt to get specific widget by id
IPersistenceManager persistenceManager = PersistenceManagerFactory.getPersistenceManager();
IWidget widget = persistenceManager.findById(IWidget.class, resourceId);
if (widget == null) throw new ResourceNotFoundException();
// FIXME localize error messages
try {
W3CWidgetFactory factory = getFactory(request.getSession().getServletContext());
installUpdate(factory, widget, false);