{
      TreeFactory theTreeFactory = (TreeFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/2002/Tree"); 
      if (theTreeFactory != null)
      {
        return theTreeFactory;
      }
    }