Changed scope to prototype in Java based configuration.