Configured using java config.