@@ -0,0 +1,965 @@
+package framework;%0A%0Aimport com.mongodb.*;%0Aimport com.mongodb.client.FindIterable;%0Aimport com.mongodb.client.MongoDatabase;%0Aimport org.bson.Document;%0A%0A/**%0A * Created with IntelliJ IDEA.%0A * User: jhasmanyquiroz%0A * Date: 12/9/15%0A * Time: 7:44 PM%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apublic class DBManager %7B%0A    private MongoClient mongoClient;%0A    private MongoDatabase database;%0A    private static DBManager instance;%0A%0A    private DBManager() %7B%0A        initialize();%0A    %7D%0A%0A    public static DBManager getInstance() %7B%0A        if (instance == null)%0A            instance = new DBManager();%0A        return instance;%0A    %7D%0A%0A    public void quitMongoDB() %7B%0A        mongoClient.close();%0A    %7D%0A%0A    private void initialize() %7B%0A        mongoClient = new MongoClient(new MongoClientURI(CredentialsManager.getInstance().getMongoServer()));%0A        database = mongoClient.getDatabase(CredentialsManager.getInstance().getMongoDataBase());%0A    %7D%0A%7D

Create the DBManager.java file for make the connection with MongoDB