private Repository createRepository(RepositoryAddress address)
throws RepositoryException {
Iterator<RepositoryFactory> iter = ServiceRegistry.lookupProviders(RepositoryFactory.class);
Set<String> supported = new HashSet<String>();
while (iter.hasNext()) {
RepositoryFactory fac = iter.next();
supported.addAll(fac.getSupportedSchemes());
Repository rep = fac.createRepository(address);
if (rep != null) {
// wrap JCR logger
if (Boolean.getBoolean("jcrlog.sysout") || System.getProperty("jcrlog.file") != null) {
Repository wrapped = wrapLogger(rep, address);
if (wrapped != null) {