@Override
   public Object[] updateServer(int id)
          throws RemoteException {

    Object[] files = this.checkout();
    ArrayList<FileDescription> update = new ArrayList<FileDescription>();
    Document doc = FileParser.parserFile(_configFile);
    
    Element server = null;


    ByteArrayOutputStream bs = new ByteArrayOutputStream();
    try {
      ObjectOutputStream os = new ObjectOutputStream(bs);
     
      os.writeObject(doc);
      os.close();
    } catch (Exception e) {
      System.out.println(e.getMessage());
    }

    update.add(new FileDescription("location.xml", -1, null, null, bs.toByteArray()));

    for (Element s : FileParser.serverList(doc)) {

      if (Integer.parseInt(FileParser.getValueOfServer(s, "id")) == id) {

        server = s;
        break;
      }
    }

    for (Element file : FileParser.getDataElements(server)) {

      for (Object fo : files) {
        FileDescription f = (FileDescription) fo;
        if (f.getFileName().equals(FileParser.getValueOfFile(file, "name"))) {
          update.add(f);
          break;
        }
      }
    }
    
    return update.toArray();
  }