private void sendMessageToAdmins(Message packet) {
        String jids = JiveGlobals.getProperty("xmpp.forward.admins");
        if (jids != null && !jids.trim().isEmpty()) {
            // Forward the message to the users specified in the "xmpp.forward.admins" property
            StringTokenizer tokenizer = new StringTokenizer(jids, ", ");
            while (tokenizer.hasMoreTokens()) {
                String username = tokenizer.nextToken();
                Message forward = packet.createCopy();
                if (username.contains("@")) {
                    // Use the specified bare JID address as the target address
                    forward.setTo(username);
                }
                else {
                    forward.setTo(username + "@" + serverName);
                }
                route(forward);
            }
        }
        else {
            // Forward the message to the users allowed to log into the admin console
            for (JID jid : XMPPServer.getInstance().getAdmins()) {
                Message forward = packet.createCopy();
                forward.setTo(jid);
                route(forward);
            }
        }
    }
Forwards the received message to the list of users defined in the property
<b>xmpp.forward.admins</b>. The property may include bare JIDs or just usernames separated
by commas or white spaces. When using bare JIDs the target user may belong to a remote
server.<p>

If the property <b>xmpp.forward.admins</b> was not defined then the message will be sent
to all the users allowed to enter the admin console.

@param packet the message to forward.
xmppserver/src/main/java/org/jivesoftware/openfire/MessageRouter.java