* @exception IllegalStateException if the popped object is not
* of the correct type
*/
public void end(String namespace, String name) throws Exception {
ReferencedBeanBean top = null;
try {
top = (ReferencedBeanBean) digester.pop();
} catch (Exception e) {
throw new IllegalStateException("Popped object is not a " +
CLASS_NAME + " instance");
}
FacesConfigBean fcb = (FacesConfigBean) digester.peek();
ReferencedBeanBean old = fcb.getReferencedBean(top.getReferencedBeanName());
if (old == null) {
if (digester.getLogger().isDebugEnabled()) {
digester.getLogger().debug("[ReferencedBeanRule]{" +
digester.getMatch() +
"} New(" +