update bean scope xml code sample