first refactoring of BridgeToCloudML.java + include PaaS concepts