String namespace = getRequest().getResourceRef().toString(false, false);
if (!namespace.endsWith("/")) {
namespace += "/";
}
ValueFactory vf = ValueFactoryImpl.getInstance();
for (RepositoryInfo info : getRepositoryManager().getAllRepositoryInfos()) {
String id = info.getId();
MapBindingSet bindings = new MapBindingSet(3);
bindings.addBinding("uri", vf.createURI(namespace, id));
bindings.addBinding("id", vf.createLiteral(id));
if (info.getDescription() != null) {
bindings.addBinding("title", vf.createLiteral(info.getDescription()));
}
result.append(bindings);
}