private Conf() { confDoc = DBUtils.getConfDoc(); if (confDoc == null) { confDoc = new Document(); confDoc .append("_id", "conf") .append("width", 400d) .append("height", 400d) .append("traductor", false) .append("lastDoc", lastDoc.get()); DBUtils.getCollection().insertOne(confDoc); } else { System.out.println(confDoc.toJson()); height.set(confDoc.getDouble("height")); width.set(confDoc.getDouble("width")); traductorVisible.set(confDoc.getBoolean("traductor", false)); Document _ld = (Document) confDoc.get("lastDoc"); if (_ld != null) { lastDoc.set(_ld); } } setListeners(); }