code: protected void setSharedConnection(Object affinity, MCWrapper mcWrapper) {
  
          final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled();
  
          if (isTracingEnabled && tc.isEntryEnabled()) {
              Tr.entry(this, tc, "setSharedConnection");
          }
          /*
           * Set the shared pool affinity on the mcWrapper for comparing in the
           * getSharedConnection method
           */
          mcWrapper.setSharedPoolCoordinator(affinity);
          mcWrapper.setSharedPool(this);
          synchronized (sharedLockObject) {
  
              /*
               * Add the mcWrapper to the mcWrapper array list
               */
              mcWrapperList[mcWrapperListSize] = mcWrapper;
              mcWrapper.setPoolState(2);
              ++mcWrapperListSize;
              if (mcWrapperListSize >= objectArraySize) {
                  /*
                   * We need to increase our size
                   */
                  objectArraySize = objectArraySize * 2;
                  mcWrapperListTemp = new MCWrapper[objectArraySize];
                  System.arraycopy(mcWrapperList, 0, mcWrapperListTemp, 0, mcWrapperList.length);
                  mcWrapperList = mcWrapperListTemp;
              }
          } // end synchronized (sharedLockObject)
  
          if (isTracingEnabled && tc.isEntryEnabled()) {
              Tr.exit(this, tc, "setSharedConnection");
          }
  
      }
docs: Adds a shared connection to the list