public static Object loadInstance(Class clazz,Object defaultValue){
  try {
    return clazz.newInstance();
  }
 catch (  Throwable t) {
    return defaultValue;
  }
}

public static Object loadInstance ( Class clazz , Object defaultValue ) { try { return clazz . newInstance ( ) ; } catch ( Throwable t ) { return defaultValue ; } }
loads a class from a string classname
