*/
public void begin(String namespace, String name,
Attributes attributes) throws Exception {
ApplicationBean ab = null;
try {
ab = (ApplicationBean) digester.peek();
} catch (Exception e) {
throw new IllegalStateException
("No parent ApplicationBean on object stack");
}
LocaleConfigBean lcb = ab.getLocaleConfig();
if (lcb == null) {
if (digester.getLogger().isDebugEnabled()) {
digester.getLogger().debug("[LocaleConfigRule]{" +
digester.getMatch() +
"} New " + CLASS_NAME);
}
Class clazz =
digester.getClassLoader().loadClass(CLASS_NAME);
lcb = (LocaleConfigBean) clazz.newInstance();
ab.setLocaleConfig(lcb);
} else {
if (digester.getLogger().isDebugEnabled()) {
digester.getLogger().debug("[LocaleConfigRule]{" +
digester.getMatch() +
"} Old " + CLASS_NAME);