public Object constructObject(String value) throws IOException, ClassNotFoundException, IllegalAccessException, InstantiationException {
  Class c=Class.forName(value);
  return c.newInstance();
}

public Object constructObject ( String value ) throws IOException , ClassNotFoundException , IllegalAccessException , InstantiationException { Class c = Class . forName ( value ) ; return c . newInstance ( ) ; }
builds class instance using reflection
