field.addValues(values);
public void deleteUser(Set<EntityBareJid> jidsToDelete) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { RemoteCommand command = deleteUser(); command.execute(); Form answerForm = command.getForm().createAnswerForm(); FormField accountJids = answerForm.getField("accountjids"); accountJids.addValues(JidUtil.toStringList(jidsToDelete)); command.execute(answerForm); assert (command.isCompleted()); } }