@Nonnull
public static Collection<? extends String> listDatabases( @Nonnull CouchServer couchServer ) throws IOException {
try ( InputStream in = couchServer.get( CouchServer.ALL_DBS ).getEntityInputStream() ) {
ListSerializer listSerializer = new ListSerializer();
List<? extends Object> dbs = listSerializer.deserialize( in );
return ( Collection<? extends String> ) dbs;
}
}
}