* 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");
}
ApplicationBean ab = fcb.getApplication();
if (ab == null) {
if (digester.getLogger().isDebugEnabled()) {
digester.getLogger().debug("[ApplicationRule]{" +
digester.getMatch() +
"} New " + CLASS_NAME);
}
Class clazz =
digester.getClassLoader().loadClass(CLASS_NAME);
ab = (ApplicationBean) clazz.newInstance();
fcb.setApplication(ab);
} else {
if (digester.getLogger().isDebugEnabled()) {
digester.getLogger().debug("[ApplicationRule]{" +
digester.getMatch() +
"} Old " + CLASS_NAME);