code: public static Object instantiateClass(String className, Class assignableFrom) {
          if(className == null)
              throw new IllegalArgumentException(Bundle.getErrorString("DataGridUtil_CantCreateClass"));
  
          Class clazz = null;
          try {
              clazz = Class.forName(className, false, Thread.currentThread().getContextClassLoader());
          }
          catch(Exception e) {
              assert e instanceof IllegalAccessException ||
                      e instanceof InstantiationException ||
                      e instanceof ClassNotFoundException : "Caught exception of unexpected type: " + e.getClass().getName();
  
              String msg = Bundle.getErrorString("DataGridUtil_CantInstantiateClass", new Object[]{e});
              LOGGER.error(msg, e);
              throw new DataGridExtensionException(msg, e);
          }
  
          return instantiateClass(clazz, assignableFrom);
      }
docs: Utility method that helps instantiate a class used to extend the data grid.
  
  @param className the name of a class to instantiate
  @param assignableFrom the type that should be assignable from an instance of type <code>className</code>
  @return an instance of the given class
  @throws org.apache.beehive.netui.databinding.datagrid.api.exceptions.DataGridExtensionException
  when an error occurs creating an instance of the class