public ConnectionMultiplexerSession getConnectionMultiplexerSession(JID address) {
        // Search in the list of CMs connected to this JVM
        LocalConnectionMultiplexerSession session =
                localSessionManager.getConnnectionManagerSessions().get(address.toString());
        if (session == null && server.getRemoteSessionLocator() != null) {
            // Search in the list of CMs connected to other cluster members
            final NodeID nodeID = multiplexerSessionsCache.get(address.toString());
            if (nodeID != null) {
                return server.getRemoteSessionLocator().getConnectionMultiplexerSession(nodeID.toByteArray(), address);
            }
        }
        return null;
    }
Returns the session originated from the specified address or {@code null} if none was
found. The specified address MUST contain a resource that uniquely identifies the session.

A single connection manager should connect to the same node.

@param address the address of the connection manager (including resource that identifies specific socket)
@return the session originated from the specified address.
xmppserver/src/main/java/org/jivesoftware/openfire/SessionManager.java