Connect to the first repository

Some CMIS endpoints only provide one repository. In this case it is not necessary to provide its repository id.
The following code snippet gets the list of all available repositories and connects to the first one.