*/
public void end() {
if ( createdBean ) {
// force any setters of the parent bean to be called for this new bean instance
Updater updater = descriptor.getUpdater();
Object instance = context.getBean();
Object top = digester.pop();
if (digester.getCount() == 0) {
context.setBean(null);
}else{
context.setBean( digester.peek() );
}
if ( updater != null ) {
if ( log.isDebugEnabled() ) {
log.debug( "Calling updater for: " + descriptor + " with: "
+ instance + " on bean: " + context.getBean() );
}
updater.update( context, instance );
} else {
if ( log.isDebugEnabled() ) {
log.debug( "No updater for: " + descriptor + " with: "
+ instance + " on bean: " + context.getBean() );
}