* @return gadget user preferences.
*/
@Override
public String execute(final ActionContext inActionContext)
{
GadgetUserPrefActionRequest currentRequest = (GadgetUserPrefActionRequest) inActionContext.getParams();
// No unescaping/decoding required
logger.debug("Updating user prefs for gadget: " + currentRequest.getGadgetId() + " with: "
+ currentRequest.getGadgetUserPref());
Gadget currentGadgetInstance = findGadgetByIdMapper.execute(new FindByIdRequest("Gadget", currentRequest
.getGadgetId()));
String oldVal = currentGadgetInstance.getGadgetUserPref();
String newVal = currentRequest.getGadgetUserPref();
if (StringUtils.equalsIgnoreCase(oldVal, newVal))
{
logger.debug("prefs didn't change; i refuse to update them");
return oldVal;