Transparent shaping of Existing Software to support Pervasive and Autonomic computing