boolean addRoute(DomainPair pair, R route) {
        final boolean result = routes.put(pair, route) != route;
        Log.trace( "Route '{}' (for pair: '{}') {}", route.getAddress(), pair, result ? "added" : "not added (was already present)." );
        return result;
    }
Adds a route of a local {@link RoutableChannelHandler}

@param pair DomainPair associated to the route.
@param route the route hosted by this node.
@return true if the element was added or false if was already present.
xmppserver/src/main/java/org/jivesoftware/openfire/spi/LocalRoutingTable.java