public void setAdminJIDs(List<JID> jids) {
        if (adminList == null) {
            adminList = new ArrayList<>();
        }
        else {
            adminList.clear();
        }

        List<JID> admins = new ArrayList<>();
        for (JID jid : jids)
        {
            if (jid != null) {
                admins.add(jid.asBareJID());
            }
        }
        adminList.addAll(admins);
        provider.setAdmins(admins);
    }
Sets the list of admin users based off of a list of jids.  Clears list first.

@param jids List of jids to set as admins.
xmppserver/src/main/java/org/jivesoftware/openfire/admin/AdminManager.java