AnnotationConfiguration configuration = new AnnotationConfiguration();
Class puppet = getUcl().loadClass( "org.hibernate.tool.hbm2x." + className );
configuration.addAnnotatedClass( puppet );
configuration.setProperty( "hibernate.hbm2ddl.auto", "create-drop" );
SessionFactory sf = configuration.buildSessionFactory();
Session s = sf.openSession();
Object puppetInst = puppet.newInstance();
puppet.getMethod( "setName", new Class[]{String.class} ).invoke( puppetInst, new Object[]{"Barbie"} );