Spring web service using MongoDB connection and basic authentication using spring security and jackson for json manipulation