InvocationTargetException {
ClassLoader ccl = Thread.currentThread().getContextClassLoader();
Class<? extends VectorModelDistribution> cl = ccl.loadClass(modelFactory).asSubclass(
VectorModelDistribution.class);
VectorModelDistribution factory = cl.newInstance();
Class<? extends Vector> vcl = ccl.loadClass(modelPrototype).asSubclass(Vector.class);
Constructor<? extends Vector> v = vcl.getConstructor(int.class);
factory.setModelPrototype(new VectorWritable(v.newInstance(prototypeSize)));
return new DirichletState<VectorWritable>(factory, numModels, alpha_0);
}