A method and system are provided for performing an activity. Accordingly,
an activity to be performed is determined, a stored hierarchy is examined
indicating a first alternate component for performing the activity first
and a second alternate component for performing the activity if the first
alternate component fails. The first alternate component is invoked to
perform the activity, and when a failure of the first alternate component
to perform the activity is detected, the second alternate component is
invoked to perform the activity. A revised hierarchy is stored indicating
that the second alternate component is to be invoked to perform the
activity before the first alternate component is invoked to perform the
activity.