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

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