code: @Override
      public Set<ManagedConnection> getInvalidConnections(@SuppressWarnings("rawtypes") Set connectionSet) throws ResourceException {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); 
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(this, tc, "getInvalidConnections", connectionSet);
  
          Set<ManagedConnection> badSet = new HashSet<ManagedConnection>();
          WSRdbManagedConnectionImpl mc = null;
  
          // Loop through each ManagedConnection in the list, using each connection's
          // preTestSQLString to check validity. Different connections can
          // have different preTestSQLStrings if they were created by different
          // ManagedConnectionFactories.
  
          for (Iterator<?> it = connectionSet.iterator(); it.hasNext();) {
              mc = (WSRdbManagedConnectionImpl) it.next();
              if (!mc.validate())
                  badSet.add(mc);
          }
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(this, tc, "getInvalidConnections", badSet); 
          return badSet;
      }
docs: The spec interface is defined with raw types, so we have no choice but to declare it that way, too