public ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo info)
            throws ResourceException {
        if (log.isDebugEnabled()) {
            log.debug("matchManagedConnections, connectionSet=" + connectionSet + ", subject=" + subject + ", fsInfo=" + info);
        }

        // info should be a TxfsConnectionRequestInfo, if not, no match found
        if ((info != null) && !(info instanceof TxfsConnectionRequestInfo)) {
            return null;
        }

        for (ManagedConnection mc : (Set<ManagedConnection>) connectionSet) {
            if ((mc instanceof TxfsManagedConnection) &&
                    ((TxfsManagedConnection) mc).getRequestInfo().equals(info)) {
                if (log.isDebugEnabled()) {
                    log.debug("matchManagedConnections: match found!");
                }
                return mc;
            }
        }
        if (log.isDebugEnabled()) {
            log.debug("matchManagedConnections: no match found");
        }
        return null;
    }