public static boolean isTrunkingEnabledFor(@Nonnull final String domain)
    {
        return ENABLED.getValue() && ALLOWABLE_DOMAINS.getValue().stream().anyMatch(v -> JID.domainprep(v).equals(JID.domainprep(domain)));
    }
Verifies if trunking functionality is enabled, and if Openfire is configured to accept data to-be-trunked to a
particular domain.

@param domain The domain for which Openfire is to accept data
@return true if Openfire is configured to trunk data for the provided domain.
xmppserver/src/main/java/org/jivesoftware/openfire/net/Trunking.java