public void desconectar(long target) {
        for (int i = 0; i < connections.getLength(); i++) {
            Connection connection = connections.get(i);
            if (connection.getTarget()==target) {
                connection.desconectar();
                connections.remove(i);
                XmlToolkit.crearDesconexion(this.id,target);
            }
        }
    }