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