  This paper describes a novel approach for the flexible development of
dependable automation services applied to a case study taken from requirements
of energy automation systems. It shows first how the use of a custom
compositional recovery language can be exploited to achieve a flexible and
dependable functionality in software. Then it is shown how modeling techniques
based on Petri nets can be used to assess the properties that different
configurations of the addressed service can achieve.
