private boolean shouldCarbonCopyToResource(ClientSession session, Message message) {
        return session.isMessageCarbonsEnabled() && Forwarded.isEligibleForCarbonsDelivery(message );
    }
Priorities are: chat, available, away, xa, dnd.
xmppserver/src/main/java/org/jivesoftware/openfire/spi/RoutingTableImpl.java