docs: public ManagedConnection matchManagedConnections(
              final Set potentialMatches, final Subject subject,
              final ConnectionRequestInfo requestInfo)
              throws ResourceAdapterInternalException {
  
          if (TRACE.isEntryEnabled()) {
              SibTr.entry(this, TRACE, "matchManagedConnections", new Object[] {
                      potentialMatches, SibRaUtils.subjectToString(subject),
                      requestInfo });
          }
  
          ManagedConnection match = null;
  
          // Check it is one of our request info objects
          if (requestInfo instanceof SibRaConnectionRequestInfo) {
  
              final SibRaConnectionRequestInfo sibRaRequestInfo = (SibRaConnectionRequestInfo) requestInfo;
              final SibRaConnectionInfo connectionInfo = new SibRaConnectionInfo(
                      this, subject, sibRaRequestInfo);
  
              // Iterate over the potential matches
              for (final Iterator iterator = potentialMatches.iterator(); iterator
                      .hasNext()
                      && (match == null);) {
  
                  final Object object = iterator.next();
  
                  // Check that it is one of ours
                  if (object instanceof SibRaManagedConnection) {
  
                      final SibRaManagedConnection potentialMatch = (SibRaManagedConnection) object;
  
                      // See if it matches
                      if (potentialMatch.matches(connectionInfo, sibRaRequestInfo
                              .getCoreConnection())) {
  
                          match = potentialMatch;
  
                      }
  
                  }
  
              }
  
          } else {
  
              // Connection manager error if it is passing us someone else's
              // request information
              throw new ResourceAdapterInternalException(NLS
                      .getString("UNRECOGNISED_REQUEST_INFO_CWSIV0354"));
  
          }
  
          if (TRACE.isEntryEnabled()) {
              SibTr.exit(this, TRACE, "matchManagedConnections", match);
          }
          return match;
  
      }