klass = Class.forName(className); if (! ofClass.isAssignableFrom(klass))
klass = locateClass(className); if (type.isAssignableFrom(klass)) return klass.newInstance(); warn(property, className, "not an instance of " + type.getName()); } catch (ClassNotFoundException e) { warn(property, className, "class not found", e); } catch (IllegalAccessException e) { warn(property, className, "illegal access", e); } catch (InstantiationException e) { warn(property, className, e); } catch (java.lang.LinkageError e) { warn(property, className, "linkage error", e); }
  static final Object createInstance(String className, Class ofClass)  {    Class   klass;    if ((className == null) || (className.length() == 0))      return null;    try    {      klass = Class.forName(className);	if (! ofClass.isAssignableFrom(klass))	return null;      return klass.newInstance();    }    catch (Exception _)    {      return null;    }    catch (java.lang.LinkageError _)    {      return null;    }  }