public static Object makeBean(String classname){
  try {
    Class<?> clazz=Class.forName(classname);
    return clazz.newInstance();
  }
 catch (  Exception ex) {
    throw new HGException("Could not construct a bean DataObject " + "from " + classname,ex);
  }
}

public static Object makeBean ( String classname ) { try { Class < ? > clazz = Class . forName ( classname ) ; return clazz . newInstance ( ) ; } catch ( Exception ex ) { throw new HGException ( "Could not construct a bean DataObject " + "from " + classname , ex ) ; } }
construct a new instance of a bean .
