response.addContextualMessage("settingsX", "validate.cannotBeNegative");
if (y < 0)
response.addContextualMessage("settingsY", "validate.cannotBeNegative");
if (!response.getHasMessages()) {
pc.tsetDataPoint(dp);
pc.setNameOverride(name);
pc.setSettableOverride(settable && Permissions.hasDataPointSetPermission(user, dp));
pc.setBkgdColorOverride(bkgdColorOverride);
pc.setDisplayControls(displayControls);
pc.setLocation(x, y);