code: @Override
      public boolean isEquivalentTo(SICoreConnection rhs)
      {
          if (TraceComponent.isAnyTracingEnabled() && CoreSPIConnection.tc.isEntryEnabled())
              SibTr.entry(CoreSPIConnection.tc, "isEquivalentTo", new Object[] { this, rhs });
  
          //if any one of these checks fails, the connections are not equivalent
          boolean result = false;
  
          //there are three checks for an equivalent connection...
          //it has to be of the same class
          if (rhs instanceof ConnectionImpl)
          {
              final ConnectionImpl conImpl = (ConnectionImpl) rhs;
              //it has to be a connection to the same message processor
              if (conImpl.getMessageProcessor() == getMessageProcessor())
              {
                  // now check that the connection's credentials are the same too
                  // Calling .equals() on a subject object requires a doPrivileged()
                  Boolean subjectResult = (Boolean) AccessController.doPrivileged(new java.security.PrivilegedAction<Object>() {
                      @Override
                      public Object run() {
                          if (TraceComponent.isAnyTracingEnabled() && CoreSPIConnection.tc.isEntryEnabled())
                              SibTr.entry(tc, "run", new Object[] { _subject, conImpl.getSecuritySubject() });
  
                          boolean result = ((_subject == null) ? (conImpl.getSecuritySubject() == null) :
                                          (_subject.equals(conImpl.getSecuritySubject())));
  
                          if (TraceComponent.isAnyTracingEnabled() && CoreSPIConnection.tc.isEntryEnabled())
                              SibTr.exit(tc, "run", Boolean.valueOf(result));
  
                          return new Boolean(result);
                      }
                  });
                  result = subjectResult.booleanValue();
              }
          }
  
          if (TraceComponent.isAnyTracingEnabled() && CoreSPIConnection.tc.isEntryEnabled())
              SibTr.exit(CoreSPIConnection.tc, "isEquivalentTo", Boolean.valueOf(result));
  
          return result;
      }
docs: /*
  (non-Javadoc)
  
  @see com.ibm.wsspi.sib.core.SICoreConnection#isEquivalentTo(com.ibm.wsspi.sib.core.SICoreConnection)