Building a dependable system from a legacy application with CORBA