bean replace with restart