LaunchingConnector findLaunchingConnector(String connectorName) {
    //VirtualMachineManager mgr = Bootstrap.virtualMachineManager();

    // Get the default connector.
    // Not useful here since they all need different args.
//      System.out.println(Bootstrap.virtualMachineManager().defaultConnector());
//      return Bootstrap.virtualMachineManager().defaultConnector();

    List connectors = Bootstrap.virtualMachineManager().allConnectors();

    // code to list available connectors
//    Iterator iter2 = connectors.iterator();
//    while (iter2.hasNext()) {
//      Connector connector = (Connector)iter2.next();
//      System.out.println("connector name is " + connector.name());
//    }

    Iterator iter = connectors.iterator();
    while (iter.hasNext()) {
      Connector connector = (Connector)iter.next();
      if (connector.name().equals(connectorName)) {
        return (LaunchingConnector)connector;
      }
    }
    throw new Error("No launching connector");
  }