* of type FacesConfigBean
*/
public void begin(String namespace, String name,
Attributes attributes) throws Exception {
FacesConfigBean fcb = null;
try {
fcb = (FacesConfigBean) digester.peek();
} catch (Exception e) {
throw new IllegalStateException
("No parent FacesConfigBean on object stack");
}
FactoryBean fb = fcb.getFactory();
if (fb == null) {
if (digester.getLogger().isDebugEnabled()) {
digester.getLogger().debug("[FactoryRule]{" +
digester.getMatch() +
"} New " + CLASS_NAME);
}
Class clazz =
digester.getClassLoader().loadClass(CLASS_NAME);
fb = (FactoryBean) clazz.newInstance();
fcb.setFactory(fb);
} else {
if (digester.getLogger().isDebugEnabled()) {
digester.getLogger().debug("[FactoryRule]{" +
digester.getMatch() +
"} Old " + CLASS_NAME);