How to adapt applications for the Cloud environment