userJID = EntityImpl.parse(affiliationElement.getAttributeValue("jid"));
} catch (EntityFormatException e) {
return errorStanzaGenerator.generateJIDMalformedErrorStanza(serverJID, sender, stanza); // TODO not defined in the standard(?)
}
PubSubAffiliation newAffiliation = PubSubAffiliation.get(affiliationElement
.getAttributeValue("affiliation"));
node.setAffiliation(userJID, newAffiliation);
} catch (LastOwnerResignedException e) {
// if the last owner tries to resign.
return errorStanzaGenerator.generateNotAcceptableErrorStanza(serverJID, sender, stanza);