An automata based approach to e-government cooperation