code: private static void hasValidatingMcfInterface(PrintStream out, PrintStream error, String classname,
           URLClassLoader cl)
     {
        try
        {
           out.print("  Validating: ");
           Class<?> clazz = Class.forName(classname, true, cl);
  
           if (hasInterface(clazz, "javax.resource.spi.ValidatingManagedConnectionFactory"))
           {
              out.println("Yes");
           }
           else
           {
              out.println("No");
           }
        }
        catch (Throwable t)
        {
           // Nothing we can do
           t.printStackTrace(error);
           out.println("Unknown");
        }
     }
docs: hasValidatingMcfInterface
  
  @param out output stream
  @param classname classname
  @param cl classloader