base on https://github.com/frodenas/cloudfoundry-client.git