code: @SuppressWarnings("unchecked")
     public List<Failure> validate(Validate v, ResourceBundle rb)
     {
        if (v != null &&
            Key.MANAGED_CONNECTION == v.getKey() &&
            ManagedConnection.class.isAssignableFrom(v.getClazz()))
        {
           boolean error = false;
           ValidateObject vo = null;
           if (v instanceof ValidateObject)
              vo = (ValidateObject)v;
           if (vo == null)
           {
              error = true;
           }
           else
           {
              try
              {
                 Class clz = vo.getClazz();
                 Method gmd = SecurityActions.getMethod(clz, "getMetaData", (Class[])null);
                 Object md = gmd.invoke(vo.getObject(), (Object[])null);
  
                 if (md == null)
                    error = true;
              }
              catch (Throwable t)
              {
                 // Ignore
              }
           }
           if (error)
           {
              List<Failure> failures = new ArrayList<Failure>(1);
  
              Failure failure = new Failure(Severity.ERROR,
                                            SECTION,
                                            rb.getString("mc.MCGetMetaData"),
                                            vo.getClazz().getName());
              failures.add(failure);
  
              return failures;
           }
        }
  
        return null;
     }
docs: Validate
  @param v The validate object
  @param rb The resource bundle
  @return The list of failures found; <code>null</code> if none