// Delete existing API key
// (We'll allow a user to update their own API key - just not create it, see below)
CookiePojo removeMe = new CookiePojo();
removeMe.setApiKey(ap.getApiKey());
ap.setApiKey(null);
DbManager.getSocial().getCookies().remove(removeMe.toDb());
}
else if (null != wpa.getApiKey()) {
// Change or create API key
// Only admins can do this:
if (null != personIdStr) { // (this is != null iff user isn't admin)