Adapt application to Cloud Foundry