private EnumVCS checkConfigFile(Document document, FileDescription[] files) {
    HashMap<String, Integer> totalSizeInServer = new HashMap<String, Integer>();
    int count = 0;

    List<Element> servers = FileParser.serverList(document);

    for (Element server : servers) {
      count = 0;
      List<Element> file4Server = FileParser.getDataElements(server);

      for (Element fil : file4Server) {
        for (int i = 0; i < files.length; i++) {
          String idFile = FileParser.getValueOfFile(fil, "name");

          if (idFile.equals(files[i].getFileName())) {
            String versionFile = FileParser.getValueOfFile(fil, "version");
            int actualVersion = Integer.parseInt(versionFile);

            if (actualVersion == files[i].getVersion()) {


              FileParser.setValueOfFile(fil, "version", Integer.toString(files[i].getVersion() + 1));
              FileParser.setValueOfFile(fil, "timestamp", files[i].getTimestamp().toString());
              FileParser.setValueOfFile(fil, "user", files[i].getUserName());
              FileParser.setValueOfFile(fil, "size", Integer.toString(files[i].getData().length));

            } else if (actualVersion < files[i].getVersion()) {
              return EnumVCS.CHECKOUT;
            } else {
              return EnumVCS.UPDATE;
            }
          }
        }
        count += Integer.parseInt(FileParser.getValueOfFile(fil, "size"));
      }
      totalSizeInServer.put(FileParser.getValueOfServer(server, "id"), Integer.valueOf(count));
    }

    HashSet<String> totalFiles = FileParser.getTotalFiles(document);
    ArrayList<String> serverOrdenados = serverTolerance(totalSizeInServer);

    for (int i = 0; i < files.length; i++) {
      if (!totalFiles.contains(files[i].getFileName())) {
        for (int k = 0; k < _kTolerance; k++) {
          FileDescription[] descrip = new FileDescription[1];
          descrip[0] = new FileDescription(files[i].getFileName(), files[i].getVersion(), files[i].getTimestamp(), files[i].getUserName(), files[i].getData());
          FileParser.addFileInServer(document, serverOrdenados.get(k), descrip);
        }
      }
    }

    return EnumVCS.OK;
  }