code: final boolean match(JmsJcaUserDetails userDetails,
                          SICoreConnection coreConnection) {
  
          boolean usersMatch = (_userDetails == null) ? (userDetails == null)
                          : (_userDetails.equals(userDetails));
          boolean coreConnectionsMatch = (coreConnection == null)
                                         || coreConnection.isEquivalentTo(_coreConnection);
  
          return usersMatch && coreConnectionsMatch && isValid();
      }
docs: Returns <code>true</code> if the given user details and connection
  match those for this managed connection.
  
  @param userDetails
  the user details
  @param coreConnection
  the connection
  @return if the parameters match