* @throws InvalidParametersException
* @throws UnauthorizedAccessException
*/
public static void createOrUpdate(HttpServletRequest request)
throws InvalidParametersException,UnauthorizedAccessException {
if (!WidgetKeyManager.isValidRequest(request)) throw new UnauthorizedAccessException();
String name = request.getParameter("propertyname"); //$NON-NLS-1$
String value = request.getParameter("propertyvalue"); //$NON-NLS-1$
IWidgetInstance instance = WidgetInstancesController.findWidgetInstance(request);
if (instance == null) throw new InvalidParametersException();
if (name == null || name.trim().equals("")) throw new InvalidParametersException();