public Collection<ClientSession> getSessions(String username) {
        List<ClientSession> sessionList = new ArrayList<>();
        if (username != null && serverName != null) {
            List<JID> addresses = routingTable.getRoutes(new JID(username, serverName, null, true), null);
            for (JID address : addresses) {
                sessionList.add(routingTable.getClientRoute(address));
            }
        }
        return sessionList;
    }
Returns a session that was originated from this server to a remote server.
OutgoingServerSession an only send packets to the remote server but are not capable of
receiving packets from the remote server.

@param pair DomainPair describing the local and remote servers.
@return a session that was originated from this server to a remote server.
xmppserver/src/main/java/org/jivesoftware/openfire/SessionManager.java