public static Command newInstance(ControlThread parent) throws SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException {
  final Constructor<? extends Command> c=cmdclazz.getConstructor(new Class[]{ControlThread.class});
  Command cmd=c.newInstance(new Object[]{parent});
  cmd.setDaemon(true);
  return cmd;
}

public static Command newInstance ( ControlThread parent ) throws SecurityException , NoSuchMethodException , IllegalArgumentException , InstantiationException , IllegalAccessException , InvocationTargetException { final Constructor < ? extends Command > c = cmdclazz . getConstructor ( new Class [ ] { ControlThread . class } ) ; Command cmd = c . newInstance ( new Object [ ] { parent } ) ; cmd . setDaemon ( true ) ; return cmd ; }
singleton style accessor for command class ( and subclasses )
