protected XMLElement processForm(List<XMLElement> commandElements, List<Note> notes) {
if (commandElements.size() != 1) {
throw new IllegalStateException("must be an X element");
}
final DataFormParser dataFormParser = new DataFormParser(commandElements.get(0));
final Map<String,Object> valueMap = dataFormParser.extractFieldValues();
final Entity accountjid;
if(valueMap.get("accountjid") instanceof Entity) {
accountjid = (Entity) valueMap.get("accountjid");
} else if(valueMap.get("accountjid") != null) {
accountjid = EntityImpl.parseUnchecked((String) valueMap.get("accountjid"));