return getOrCreateRepository(dir, xml);
} catch (Exception e) {
RepositoryStubException exception =
new RepositoryStubException("Failed to start repository");
exception.initCause(e);
throw exception;
}
}
protected Repository createRepository(String dir, String xml)