docs: public static DocumentFactory getInstance() {
        if (CONFIGURED_INSTANCE == null) {
           synchronized (DocumentFactory.class) {
              if (CONFIGURED_INSTANCE == null) {
                 CONFIGURED_INSTANCE = new DocumentFactory();
              }
           }
        }
        return CONFIGURED_INSTANCE;
     }