List<RepositoryInfo> result = new ArrayList<RepositoryInfo>();
try {
TupleResult responseFromServer = client.repositories().list();
while (responseFromServer.hasNext()) {
BindingSet bindingSet = responseFromServer.next();
RepositoryInfo repInfo = new RepositoryInfo();
String id = LiteralUtil.getLabel(bindingSet.getValue("id"), null);
if (skipSystemRepo && id.equals(SystemRepository.ID)) {
continue;
}
Value uri = bindingSet.getValue("uri");
String description = LiteralUtil.getLabel(bindingSet.getValue("title"), null);
if (uri instanceof URI) {
try {
repInfo.setLocation(new URL(uri.toString()));
}