Spring Java Configuration for mongo db operations