docs: def _vcap_from_service_definition(service_def):
      """Turn a service definition into a vcap services
      containing a single service.
      """
      if 'credentials' in service_def:
          credentials = service_def['credentials']
      else:
          credentials = service_def
  
      service = {}
      service['credentials'] = credentials
      service['name'] = _name_from_service_definition(service_def)
      vcap = {'streaming-analytics': [service]}
      return vcap