private UIComponent newInstance(TreeNode n) throws FacesException {
  if (LOGGER.isLoggable(Level.FINEST)) {
    LOGGER.log(Level.FINEST,"newInstance",n.componentType);
  }
  try {
    Class<?> t=((classMap != null) ? classMap.get(n.componentType) : null);
    if (t == null) {
      t=Util.loadClass(n.componentType,n);
      if (t != null && classMap != null) {
        classMap.put(n.componentType,t);
      }
 else {
        if (!isDevelopmentMode) {
          throw new NullPointerException();
        }
      }
    }
    assert (t != null);
    UIComponent c=(UIComponent)t.newInstance();
    c.setId(n.id);
    return c;
  }
 catch (  ClassNotFoundException|NullPointerException|InstantiationException|IllegalAccessException e) {
    throw new FacesException(e);
  }
}

private UIComponent newInstance ( TreeNode n ) throws FacesException { if ( LOGGER . isLoggable ( Level . FINEST ) ) { LOGGER . log ( Level . FINEST , "newInstance" , n . componentType ) ; } try { Class < ? > t = ( ( classMap != null ) ? classMap . get ( n . componentType ) : null ) ; if ( t == null ) { t = Util . loadClass ( n . componentType , n ) ; if ( t != null && classMap != null ) { classMap . put ( n . componentType , t ) ; } else { if ( ! isDevelopmentMode ) { throw new NullPointerException ( ) ; } } } assert ( t != null ) ; UIComponent c = ( UIComponent ) t . newInstance ( ) ; c . setId ( n . id ) ; return c ; } catch ( ClassNotFoundException | NullPointerException | InstantiationException | IllegalAccessException e ) { throw new FacesException ( e ) ; } }
create a new component instance .
