/**
  * Create a new instance of the factory
  *
  * @param factoryId Name of the factory to find, same as a property name
  * @param classLoader classLoader to use
  * @return the factory implementation
  * @throws FactoryConfigurationError if an instance of this factory cannot be loaded
  */
 public static XMLEventFactory newInstance(String factoryId, ClassLoader classLoader)
     throws FactoryConfigurationError {
   return (XMLEventFactory)
       FactoryFinder.find(factoryId, "com.bea.xml.stream.EventFactory", classLoader);
 }
 /**
  * Create a new instance of the factory
  *
  * @throws FactoryConfigurationError if an instance of this factory cannot be loaded
  */
 public static XMLEventFactory newInstance() throws FactoryConfigurationError {
   return (XMLEventFactory)
       FactoryFinder.find("javax.xml.stream.XMLEventFactory", "com.bea.xml.stream.EventFactory");
 }