def _vcap_from_service_definition(service_def):
if '<STR_LIT>' in service_def:<EOL><INDENT>credentials = service_def['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>credentials = service_def<EOL><DEDENT>service = {}<EOL>service['<STR_LIT>'] = credentials<EOL>service['<STR_LIT:name>'] = _name_from_service_definition(service_def)<EOL>vcap = {'<STR_LIT>': [service]}<EOL>return vcap<EOL>
Turn a service definition into a vcap services
    containing a single service.