userIsObject = false;
itemIsObject = false;
idCounter = 0;
preferenceIsString = true;
Mongo mongoDDBB = new Mongo(mongoHost, mongoPort);
DB db = mongoDDBB.getDB(mongoDB);
mongoTimestamp = new Date(0);
FastByIDMap<Collection<Preference>> userIDPrefMap = new FastByIDMap<Collection<Preference>>();
if (!mongoAuth || (mongoAuth && db.authenticate(mongoUsername, mongoPassword.toCharArray()))) {
collection = db.getCollection(mongoCollection);
collectionMap = db.getCollection(MONGO_MAP_COLLECTION);
DBObject indexObj = new BasicDBObject();
indexObj.put("element_id", 1);
collectionMap.ensureIndex(indexObj);
indexObj = new BasicDBObject();
indexObj.put("long_value", 1);