code: @Override
     public boolean isValid(Object c) throws ResourceException
     {
        if (c != null)
        {
           try
           {
              Method method = SecurityActions.getMethod(c.getClass(), "isValid", new Class[] {int.class});
              SecurityActions.setAccessible(method, true);
              Boolean b = (Boolean)method.invoke(c, new Object[] {Integer.valueOf(5)});
              return b.booleanValue();
           }
           catch (Throwable t)
           {
              log.debugf("No isValid(int) method defined on connection interface (%s)", c.getClass().getName());
           }
        }
  
        return false;
     }
docs: {@inheritDoc}